Exchanges authentication credentials for access tokens.

OAuth 2.0 allows for the secure retrieval of resources while protecting user credentials. Viafoura provides an authentication service which is OAuth 2.0 compliant.

To use OAuth 2.0 authentication with Viafoura, the following must occur:

  1. Obtain a temporary access token by requesting authorization with our OAuth 2.0 compliant server.
  2. Request a protected resource using the aforementioned access token.
  3. The resource server will verify the access token before providing the resource.

The token produced is encoded as a JSON Web Token and it is valid for 5 minutes

If the access token has expired, an error will return when requesting the protected resource, and a new access token must be requested.

Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!