oauth2.0 Flashcards

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

What does OAuth 2.0 stand for?

A

Open Authorization 2.0

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

True or False: OAuth 2.0 is a protocol for authorization.

A

True

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

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 _____ .

A

credentials

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

What are the four main roles in the OAuth 2.0 framework?

A

Resource Owner, Client, Authorization Server, Resource Server

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

Which grant type is used for user authentication in OAuth 2.0?

A

Authorization Code Grant

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

True or False: The Resource Owner is typically the end-user.

A

True

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

What is the purpose of an access token in OAuth 2.0?

A

To grant the client access to the resource owner’s resources.

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

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

A

D) Session Grant

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

What is the role of the Authorization Server?

A

To issue access tokens to the client after successfully authenticating the Resource Owner.

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

Fill in the blank: In OAuth 2.0, a _____ is a string representing an access request.

A

token

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

True or False: OAuth 2.0 uses JSON Web Tokens (JWT) exclusively for access tokens.

A

False

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

What is the difference between access tokens and refresh tokens?

A

Access tokens are used to access resources, while refresh tokens are used to obtain new access tokens.

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

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

A

B) Client Credentials Grant

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

What does the ‘scope’ parameter define in an OAuth 2.0 request?

A

The scope parameter defines the level of access that the client is requesting.

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

Fill in the blank: OAuth 2.0 is designed to work over _____ .

17
Q

True or False: OAuth 2.0 provides authentication and authorization in a single step.

18
Q

What is the purpose of the ‘redirect_uri’ parameter in the OAuth 2.0 flow?

A

To specify where the authorization server should send the user after granting access.

19
Q

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

A

B) Implicit Grant

20
Q

What is an authorization code in OAuth 2.0?

A

A temporary code that the client exchanges for an access token.

21
Q

Fill in the blank: The OAuth 2.0 specification is defined in _____ .

22
Q

True or False: OAuth 2.0 can be used for both web applications and mobile applications.

23
Q

What is a common use case for OAuth 2.0?

A

Allowing users to log into a third-party application using their social media account.

24
Q

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

A

C) User Credentials

25
What is the purpose of the 'state' parameter in an OAuth 2.0 request?
To maintain state between the request and callback, and to prevent CSRF attacks.