Salesforce Certified Platform Identity and Access Management Architect free question 6 / 10 · Domain 3: Salesforce as an Identity Provider
While a user enters the code at the verification URL, the application on a device calls the Salesforce token endpoint again and again. What does each of these calls check?
- Whether the device still has the user code on screen, so that Salesforce can end the flow if the screen is off
- Whether the refresh token of the user has expired since the device last called
- Whether the user has authorized access and whether the authorization server has issued the access token
- Whether the certificate on the device matches the connected app, so that the user code can be accepted
Show the answer and explanation
Answer: C
Why this is correct
The Help page says the client application on the device polls the token endpoint repeatedly after it displays the user code and verification URL. Polling checks whether the user has authorized access and whether the authorization server has issued the access token, and the device receives the token once the user has approved.
Why the other options are wrong
"Whether the device still has the user code on screen, so that Salesforce can end the flow if the screen is off" … The page describes polling as a check of authorization and token issue.
"Whether the refresh token of the user has expired since the device last called" … The page says polling checks whether the user has authorized access and whether the authorization server has issued the access token.
"Whether the certificate on the device matches the connected app, so that the user code can be accepted" … The device flow in the page uses the user code and verification URL.
Where people trip
After displaying the user code and verification URL, the client application on the device polls the token endpoint repeatedly. Polling checks whether the user has authorized access and whether the authorization server has issued the access token.