oauth2.0 Flashcards
What does OAuth 2.0 stand for?
Open Authorization 2.0
True or False: OAuth 2.0 is a protocol for authorization.
True
Fill in the blank: OAuth 2.0 allows third-party applications to obtain limited access to a user’s resources without sharing the user’s _____ .
credentials
What are the four main roles in the OAuth 2.0 framework?
Resource Owner, Client, Authorization Server, Resource Server
Which grant type is used for user authentication in OAuth 2.0?
Authorization Code Grant
True or False: The Resource Owner is typically the end-user.
True
What is the purpose of an access token in OAuth 2.0?
To grant the client access to the resource owner’s resources.
Multiple Choice: Which of the following is NOT a grant type in OAuth 2.0? A) Authorization Code B) Resource Owner Password Credentials C) Implicit Grant D) Session Grant
D) Session Grant
What is the role of the Authorization Server?
To issue access tokens to the client after successfully authenticating the Resource Owner.
Fill in the blank: In OAuth 2.0, a _____ is a string representing an access request.
token
True or False: OAuth 2.0 uses JSON Web Tokens (JWT) exclusively for access tokens.
False
What is the difference between access tokens and refresh tokens?
Access tokens are used to access resources, while refresh tokens are used to obtain new access tokens.
Multiple Choice: Which of the following is a valid OAuth 2.0 flow for server-to-server communication? A) Authorization Code Grant B) Client Credentials Grant C) Implicit Grant D) Device Authorization Grant
B) Client Credentials Grant
What does the ‘scope’ parameter define in an OAuth 2.0 request?
The scope parameter defines the level of access that the client is requesting.
Fill in the blank: OAuth 2.0 is designed to work over _____ .
HTTP
True or False: OAuth 2.0 provides authentication and authorization in a single step.
False
What is the purpose of the ‘redirect_uri’ parameter in the OAuth 2.0 flow?
To specify where the authorization server should send the user after granting access.
Multiple Choice: Which grant type is most suitable for a mobile application? A) Authorization Code Grant B) Implicit Grant C) Client Credentials Grant D) Resource Owner Password Credentials
B) Implicit Grant
What is an authorization code in OAuth 2.0?
A temporary code that the client exchanges for an access token.
Fill in the blank: The OAuth 2.0 specification is defined in _____ .
RFC 6749
True or False: OAuth 2.0 can be used for both web applications and mobile applications.
True
What is a common use case for OAuth 2.0?
Allowing users to log into a third-party application using their social media account.
Multiple Choice: Which of the following is NOT a requirement for a client in OAuth 2.0? A) Client ID B) Client Secret C) User Credentials D) Redirect URI
C) User Credentials