Authentication and Authorization
Clients will need to invoke /authorize to complete the
authentication and authorization flow. If this has been completed successfully,
the client will have received a code which it can use with
/token to retrieve an access_token and a refresh_token
if it is available.
- Start an authentication and authorization flow by directing the browser to
/authorize. Be sure to specify the correct
redirect_urifor the client. - The authentication and authorization flow ends by calling the
redirect_urifor the client with either acodeor error. - Use the received
codewith /token to obtain an access token and refresh token if available.
See the Tokens Overview for more information about the access and refresh tokens received in Step 3.
- If the access token has expired and a refresh token is available to the client, use /token with the refresh token to get new access and refresh tokens. A refresh token may only be used once.
- Call the resource server with the access token. The access token is sent to
the resource server as an HTTP
Authorizationheader prefixed by the textBearer.