OpenID Connect/Social Sign On/Authentication Provider Flashcards

1
Q

Describe the OpenID Connect flow?

A
  1. User requests a service from a client application
  2. The client app redirects the user to the Authorization Server
  3. The user authenticates and authorizes the client
  4. The Authorization Server redirects the user to the client application with an Authorization code
  5. The client app requests token with the Authorization code
  6. The Authorization server returns an access and id token
  7. ID token can be used to request user info
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is pre-requisite for an OpenID Connect flow?

A

openid scope needs to be selected

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

What is the name of the parameter that you receive in an OpenID token flow describing User ID properties?

A

id_token

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

When would you use a Dynamic Client Registration?

A

When Salesforce plays the role of a client management provider for an API Gateway

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

What setting do you use when setting up the Connected App for the API Gateway in a Dynamic Client Registration scenario?

A

Initial Access Token for Dynamic Client Registration section → Generate

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

What endpoint can the API Gateway use to check for the validity of an access token before using it?

A

Introspection endpoint, usually at https://hostname/services/oauth2/introspect

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

What is the terminology used for Authentication Providers / OpenID connect?

A
Relying party (RP) / Client - The party requesting the authentication access
Authorization Server / OpenID Provider (OP) / Third party - the authentication provider
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What capability does an External Authentication Provider provide?

A

External authentication provider lets users log in to Salesforce using their login credentials from a third-party service.
Provide SSO & OAuth based API access to SF.

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

What are the 4 types of Authentication Providers that are supported on Salesforce?

A
  1. Salesforce Managed Authentication Providers
  2. Custom implementation of these managed authentication providers (e.g. FB)
  3. Other authentication providers that support OpenID Connect
  4. Other authentication providers that don’t support OpenID Connect, but use OAuth - use Auth.AuthProviderPluginClass abstract class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the fields that need to be left empty if using the Salesforce Managed Authentication Providers?

A
  • Consumer Key
  • Consumer Secret
  • Authorize Endpoint URL
  • Token Endpoint URL
  • User Info Endpoint URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the registration handler class do in the Authentication Provider setup?

A
  1. Create the User in SF the first time the user signs up

2. Update the User in SF subsequently

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

What is the URL you get when you have configured an Authentication Provider to test the connection?

A

Test-Only Initialization URL.
It redirects you to the authentication provider and asks you to sign in. You’re then asked to authorize your app. After you authorize, you’re redirected to Salesforce.

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

What are the Salesforce Managed Authentication Providers?

A

Apple, FB, Google, Janrain, LinkedIn, Microsoft, Twitter

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

What are the URL’s that are generated once an Authentication Provider has been created?

A
  • Test-Only Initialization URL
  • Single Sign-On Initialization URL
  • Existing User Linking URL
  • OAuth-Only Initialization URL
  • Callback URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are some of the request parameters that are available when setting up Authentication Providers?

A
  • provAuthorizeEndpointHost
  • community
  • expid
  • prompt
  • scope
  • site
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can Salesforce be used as an Authentication Provider?

A

Yes - Users can log in to an external app using SF credentials

17
Q

Where is the setup done for Salesforce as an Authentication Provider?

A
  1. Add a Connected App
  2. Create an entry in Auth Providers
  3. Enter the following
    - Authorize Endpoint URL
    - Token Endpoint URL
    - Default Scopes
    - Custom Error URL
    - Custom Logout URL
    - Registration handler Apex class
    - Use callback URL defined to update the connected app