3 ms·
"Authorization" answers "does the entity have permission to access the requested resource?" "Authentication" is "is the entity is who it says it is?" "Entity
by TravelAndFood 8y ago
"Authorization" answers "does the entity have permission to access the requested resource?"
"Authentication" is "is the entity is who it says it is?"
"Entity logging in" is an example of authentication. Is the entity trying to log in the entity it claims to be? An example claimed identity is a username, and example proof of authentic claim is a correct password.
"Entity trying to read data" is an example of authorization. Does the entity trying to read the data have permission to read that data? Checking an access control list against a username is an example of checking authorization.
How are they different, and separate?
I claim to be a user and supply a password. My claim is authenticated and I successfully log in. I have requested access to zero resources and thus no authorization has occurred.
A hacker steals my session while I'm logged in and requests my sensitive data. The system sees the request came from a username that is on the access control list for the resource and authorizes the hacker to see my data. No check on my actual identity (authentication) occurred, only a check whether the provided identity is authorized.
- aliswe 8y agoThanks for shedding more light on this.