Define OAuth.
An open standard for access delegation commonly used for token-based authentication.
What is a token in authentication?
A string of characters used to verify a user’s identity and permissions.
True or false: JWT stands for JSON Web Token.
TRUE
Fill in the blank: Sessions are used to store user data on the ______.
server
What is the purpose of cookies in authentication?
To store user session information on the client side.
Define access token.
A token that allows access to specific resources for a limited time.
What does refresh token do?
It allows obtaining a new access token without re-authentication.
True or false: Bearer tokens require additional authentication.
FALSE
What is the authorization code flow?
A flow where the client receives an authorization code to obtain tokens.
Define implicit flow.
A simplified OAuth flow for client-side applications without a backend.
What is PKCE?
Proof Key for Code Exchange, enhancing security for public clients.
Fill in the blank: Scopes define what ______ a token can access.
resources
What is a state parameter?
A value used to maintain state between the request and callback.
True or false: OAuth is only for web applications.
FALSE
Define client credentials flow.
A flow where the client authenticates itself to obtain an access token.
What is token expiration?
The time after which a token is no longer valid.
Fill in the blank: CSRF stands for Cross-Site ______ Request Forgery.
Request
What is CORS?
Cross-Origin Resource Sharing, a security feature for web applications.
Define SAML.
Security Assertion Markup Language, used for exchanging authentication and authorization data.
What is the role of identity provider?
To authenticate users and provide identity information to service providers.
True or false: Single Sign-On (SSO) allows access to multiple applications with one login.
TRUE
Fill in the blank: OAuth 2.0 is an ______ version of OAuth.
improved
What is OpenID Connect?
An identity layer on top of OAuth 2.0 for user authentication.
Define token revocation.
The process of invalidating a token before its expiration.