Authenticating to a REST API Flashcards
What is authentication
the act of verifying the user’s identity.
What is Authorization
the user proving that they have the permissions to perform the requested action on that resource.
Describe Basic authentication
also known as Basic Auth, uses the standard Basic HTTP authentication scheme. Basic Auth transmits credentials as username/password pairs separated with a colon ( : ) and encoded using Base64.
What is this an example of
Authorization: Basic :
Basic authentication
What is Bearer Authentication
also known as Token Authentication, uses the standard Bearer HTTP authentication scheme. It is more secure than Basic Authentication and is typically used with OAuth (to be discussed later) and Single Sign-On (SSO). Bearer Authentication uses a bearer token, which is a string generated by an authentication server such as an Identity Service (IdS).
What is this an example of
Authorization: Bearer
Bearer authentication
What is an API key
also referred to as an API Token, is a unique alphanumeric string generated by the server and assigned to a user.
What are the two types of API keys
Public and private api keys
What is Open Authorization
also known as OAuth, combines authentication with authorization. OAuth was developed as a solution to insecure authentication mechanisms. With increased security compared to the other options, it is usually the recommended form of authentication/authorization for REST APIs.
What is flow
This process of obtaining the token is called a flow.