Salesforce Certified Platform Identity and Access Management Architect free question 5 / 10 · Domain 3: Salesforce as an Identity Provider
A user opens the Salesforce mobile app and signs in, and the app then receives access and refresh tokens from Salesforce. In this OAuth authorization flow, which roles does the Salesforce org play?
- Resource server and authorization server, as it hosts the protected data and issues the access token
- Resource owner and client, as it holds the user’s data and asks the mobile app for a token
- Client and authorization server, as it requests access from the mobile app and then grants it to itself
- Client and resource owner, as it requests access to the data and approves that access for the user
Show the answer and explanation
Answer: A
Why this is correct
The Help page walks through a login to the Salesforce mobile app. The org hosts the protected resource, so it is the resource server, and by issuing an access token it acts as the authorization server. The mobile app is the client requesting access, and the user is the resource owner who allows the app to access and manage the data.
Why the other options are wrong
"Client and resource owner, as it requests access to the data and approves that access for the user" … The page names the Salesforce mobile app as the client requesting access and the user as the resource owner who allows the access.
"Client and authorization server, as it requests access from the mobile app and then grants it to itself" … The page has the mobile app request access. The org does not request access from the app, so it is not the client.
"Resource owner and client, as it holds the user’s data and asks the mobile app for a token" … The user is the resource owner. The org hosts the protected resource as the resource server and issues the token as the authorization server.
Key points
Each flow approves access differently, but in general the client app requests access, an authorizing server grants access tokens, and a resource server validates them before approving access to the protected resource.