Getting an Access Token

There are 2 ways to get an Access Token for Backstage API:

Flow 1: Client Credentials

  1. Client submits client_id and client_secret to the token endpoint.
  2. Server returns an Access Token.

🚧

Guidelines

  • Used for server-to-server communication.
  • This flow is recommended.

πŸ“˜

For more detail, see: Client Credentials Flow

Flow 2: Password Credentials

  1. Client submits client_id,client_secret, usernameand password to the token endpoint.
  2. Server returns an Access Token and Refresh Token.

🚧

Guidelines

  • Used for client-to-server communication.
  • This flow is generally not recommended.

πŸ“˜

For more detail, see: Password Credentials Flow


The topics that follow provide more detail for each of the above flows.