Skip to main content

Okta Authentication Provider

The Backstage core-plugin-api package comes with a Okta authentication provider that can authenticate users using Okta OpenID Connect.

Create an Application on Okta

To add Okta authentication, you must create an Application from Okta:

  1. Log into Okta (generally
  2. Navigate to Menu >> Applications >> Applications >> Create App Integration
  3. Fill out the Create a new app integration form:
    • Sign-in method: OIDC - OpenID Connect
    • Application type: Web Application
    • Click Next
  4. Fill out the New Web App Integration form:
    • App integration name: Backstage (or your custom app name)
    • Grant type: Authorization Code & Refresh Token
    • Sign-in redirect URIs: http://localhost:7007/api/auth/okta/handler/frame
    • Sign-out redirect URIs: http://localhost:7007
    • Controlled access: (select as appropriate)
    • Click Save


The provider configuration can then be added to your app-config.yaml under the root auth configuration:

environment: development
audience: ${AUTH_OKTA_DOMAIN}
authServerId: ${AUTH_OKTA_AUTH_SERVER_ID} # Optional
idp: ${AUTH_OKTA_IDP} # Optional

The values referenced are found on the Application page on your Okta site.

  • clientId: The client ID that you generated on Okta, e.g. 3abe134ejxzF21HU74c1
  • clientSecret: The client secret shown for the Application.
  • audience: The Okta domain shown for the Application, e.g.
  • authServerId: The authorization server ID for the Application
  • idp: The identity provider for the application, e.g. 0oaulob4BFVa4zQvt0g3

Adding the provider to the Backstage frontend

To add the provider to the frontend, add the oktaAuthApi reference and SignInPage component as shown in Adding the provider to the sign-in page.