APIGEE-API-ENGINEER practice question 11 of 25

Which describe OAuth 2.0 Refresh Tokens'? Select all that are correct

Full set: 126 questions
Answer options
A: can be used to generate or renew access tokens Correct answer
B: is always issued with every access token
C: can be used to reset crederfflals
D: may be reused multiple times to create new access tokens Correct answer
Correct Answer:
A. can be used to generate or renew access tokens; D. may be reused multiple times to create new access tokens
Explanation

An OAuth 2.0 refresh token is a credential used to obtain new access tokens. Its primary purpose, as defined in the OAuth 2.0 framework, is to allow a client application to get a new access token when the current one expires, without requiring the end-user to re-authenticate. Depending on the authorization server's policy, a refresh token may be long-lived and reusable multiple times. However, for enhanced security, a server may also implement refresh token rotation, where a new refresh token is issued each time one is used.

Why Incorrect

B. The issuance of a refresh token is optional and depends on the grant type and authorization server configuration; for example, the Implicit grant type does not include a refresh token.
C. Refresh tokens are used exclusively for obtaining new access tokens; they are not involved in the process of resetting a user's primary credentials, such as their password.

References

1. Internet Engineering Task Force (IETF) RFC 6749

The OAuth 2.0 Authorization Framework.

Section 1.5

"Refresh Token": "Refresh tokens are issued to the client by the authorization server and are used to obtain a new access token when the current access token becomes invalid or expires..." This directly supports option A.

Section 6

"Refreshing an Access Token": "The authorization server MAY issue a new refresh token

in which case the client MUST discard the old refresh token and replace it with the new refresh token." The use of "MAY" indicates that a new token is not always issued

implying the original can be reused if a new one is not provided. This supports option D.

Section 4.2.2

"Access Token Response" (Implicit Grant): "A refresh token SHOULD NOT be included." This directly refutes the claim in option B that a refresh token is always issued.

2. Google Cloud

Apigee Documentation

"OAuthV2 policy".

"Generating an access token" section: The documentation describes the element within the GenerateAccessToken block. This element's existence as a configurable option demonstrates that issuing a refresh token is a deliberate policy choice and not an automatic action for every access token generation

which refutes option B.

Scroll to Top