Security - Oauth Flashcards

Learn high level security principles (16 cards)

1
Q

What does OAuth stand for?

A

Open Authorization

OAuth is a standard for securely granting application permissions without sharing passwords.

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

In the valet key analogy, what does the valet key represent?

A

Access token

It allows access to specific data/features without revealing the full account or sensitive details.

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

Who is the Resource Owner in the OAuth process?

A

You (the person who owns the data)

For example, your photos on Google Photos.

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

What role does the App (Client) play in OAuth?

A

The application that wants to access your data

For example, a photo printing service.

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

What is the function of the Authorization Server/Resource Server?

A

Holds your data and handles permissions

Examples include Google and Facebook.

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

What is the first step in the OAuth flow when using an app?

A

You show intent by clicking a button

This button typically says something like ‘Connect to Google Photos’.

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

What happens after the app asks for permission in the OAuth process?

A

The app redirects you to the service’s sign-in page

It’s important to ensure you are on the official website.

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

What does the user do after being redirected to the sign-in page?

A

Log in & grant consent

You enter your credentials, which the app never sees.

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

What does Google provide after you grant consent in the OAuth process?

A

A one-time use code

This code is sent back to the app via a redirect link.

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

What does the app do with the code received from Google?

A

Exchanges the code for an access token

The access token acts like a valet key for accessing specific data.

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

What can you do at any time regarding an app’s access in OAuth?

A

Revoke the app’s access

This effectively breaks the valet key.

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

How do users typically use OAuth without realizing it?

A
  • ‘Sign in with Google/Facebook/Apple’ buttons
  • Granting apps access to data
  • Linking accounts

These actions utilize OAuth to share information securely.

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

What is the first step for a developer wanting to use OAuth?

A

Register your app

This is done at the service’s developer portal.

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

What must a developer define when using OAuth?

A

A Redirect URI

This indicates where to send the user after granting permission.

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

What should developers use to handle OAuth processes?

A

The service’s library or API

This usually follows the ‘Authorization Code grant’ flow.

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

What is a key responsibility of the application regarding access tokens?

A

Manage tokens securely

This includes handling expiration and possibly using refresh tokens.