Authentication Flashcards

(42 cards)

1
Q

Define OAuth.

A

An open standard for access delegation commonly used for token-based authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a token in authentication?

A

A string of characters used to verify a user’s identity and permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or false: JWT stands for JSON Web Token.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: Sessions are used to store user data on the ______.

A

server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of cookies in authentication?

A

To store user session information on the client side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define access token.

A

A token that allows access to specific resources for a limited time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does refresh token do?

A

It allows obtaining a new access token without re-authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or false: Bearer tokens require additional authentication.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the authorization code flow?

A

A flow where the client receives an authorization code to obtain tokens.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define implicit flow.

A

A simplified OAuth flow for client-side applications without a backend.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is PKCE?

A

Proof Key for Code Exchange, enhancing security for public clients.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fill in the blank: Scopes define what ______ a token can access.

A

resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a state parameter?

A

A value used to maintain state between the request and callback.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or false: OAuth is only for web applications.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define client credentials flow.

A

A flow where the client authenticates itself to obtain an access token.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is token expiration?

A

The time after which a token is no longer valid.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Fill in the blank: CSRF stands for Cross-Site ______ Request Forgery.

18
Q

What is CORS?

A

Cross-Origin Resource Sharing, a security feature for web applications.

19
Q

Define SAML.

A

Security Assertion Markup Language, used for exchanging authentication and authorization data.

20
Q

What is the role of identity provider?

A

To authenticate users and provide identity information to service providers.

21
Q

True or false: Single Sign-On (SSO) allows access to multiple applications with one login.

22
Q

Fill in the blank: OAuth 2.0 is an ______ version of OAuth.

23
Q

What is OpenID Connect?

A

An identity layer on top of OAuth 2.0 for user authentication.

24
Q

Define token revocation.

A

The process of invalidating a token before its expiration.

25
What is a **nonce**?
A unique value used to prevent replay attacks in authentication.
26
True or false: **OAuth** can be used for both authentication and authorization.
TRUE
27
Fill in the blank: **JWT** consists of three parts: header, payload, and ______.
signature
28
What is **token introspection**?
A method to validate and obtain information about a token.
29
Define **user-agent**.
The software acting on behalf of the user, typically a web browser.
30
What is the **resource owner**?
The user or entity that owns the data being accessed.
31
True or false: **OAuth** requires user consent for access.
TRUE
32
Fill in the blank: **Authorization** is the process of determining ______.
permissions
33
What is a **service provider**?
An application or service that provides resources to clients.
34
Define **API key**.
A unique identifier used to authenticate a client to an API.
35
What does **scope creep** refer to?
The gradual expansion of access permissions beyond what was intended.
36
True or false: **SSL** is essential for secure token transmission.
TRUE
37
Fill in the blank: **OAuth** uses ______ tokens for authorization.
access
38
What is **two-factor authentication**?
A security process requiring two forms of verification for access.
39
Define **refresh token rotation**.
A security measure where refresh tokens are replaced after use.
40
What is a **public client**?
An application that cannot securely store client secrets.
41
True or false: **OAuth** is a protocol, not a standard.
FALSE
42
Fill in the blank: **OAuth** 2.0 is designed for ______ applications.
web and mobile