Authentication vs Authorization1:46 with Alena Holligan
Introduction to authentication and explaining the difference between authentication and authorization as this is something that many people confuse.
HTTP Status codes also help you show if a user is unauthenticated or unauthorized. These come from using 401 Unauthorized and 403 Forbidden HTTP Status codes, however, they are a little misleading. 401 Unauthorized actually means the user is not authenticated while 403 Forbidden means the user is not authorized to perform the action they are trying to do.
Understanding 403 Forbidden
Course: HTTP Basics
The difference between authentication and 0:00 authorization can be a little confusing when you're starting out. 0:02 Authentication is the process of identifying who you are. 0:06 There are many ways to authenticate yourself, and not only on the web. 0:11 Since this course is about user authentication with PHP, 0:16 the most common authentication is a username and password. 0:19 But you're around authentication all the time. 0:24 If you want to travel on an airplane, you'll be required to identify 0:27 who you are in the form of a passport or other accepted identification. 0:31 This is a different, non-web form of authentication. 0:36 Authorization is the process of verifying that you have 0:41 access to do what you're trying to do. 0:45 When authorizing a user with PHP, this could mean 0:48 allowing an authenticated user access to an administrative dashboard. 0:52 Let's take a look at this in a little different way. 0:57 You are the tenant of an apartment building with nine other people. 1:00 In order to authenticate yourself to show that you are allowed into the building, 1:05 you are given a key card. 1:10 This key card identifies who you are and allows you into the main building. 1:12 This is the authentication part of the system. 1:18 Now that you have been authenticated yourself and 1:21 are in the building, you are presented with ten doors. 1:24 Your key card only allows you into a single door, your apartment. 1:28 This is the authorization part. 1:33 You are authorized to enter only one of the ten doors. 1:35 Hopefully now you're able to see the difference between authentication and 1:40 authorization. 1:45
You need to sign up for Treehouse in order to download course files.Sign up