Which authorization steps are required to obtain an access token according to the OAuth2 authorization code grant flow?
Correct Answer: A
In the OAuth2 authorization code grant flow, the following steps are required to obtain an access token:
1. Authenticate: The user logs in via the authorization server, which verifies the credentials.
2. Get the authorization code: After successful authentication, the authorization server sends an authorization code to the client via a redirect URI.
3. Exchange the authorization code for an access token: The client sends the authorization code along with its client ID and client secret to the authorization server.
4. Receive access token: The authorization server validates the request and responds with an access token.