Skip to main content

Configure a Custom Key Manager

ThunderID is the default key manager. To issue access tokens from your own identity provider instead, or in addition, register it as a custom key manager in the API Portal & AI Hub. Developers can then select it when they get an OAuth2 key.

info

Only administrators can add and manage key managers. Sign in to the API Portal & AI Hub as an administrator.

Key Manager Types​

TypeUse It For
ThunderIDThunderID.
WSO2 Identity ServerWSO2 Identity Server, using its DCR v1.1 API.
AsgardeoAsgardeo.
CustomAny key manager that implements RFC 7591 and RFC 7592, such as Keycloak, and has no type of its own.
ProvisionNo registration. Developers import a client ID that they created in the key manager. This type is always used when you select In the identity server for OAuth2 applications.

Add a Key Manager​

  1. Sign in to the API Portal & AI Hub as an administrator.

  2. Go to Settings, and under ORGANIZATION, click the Key Managers tab.

  3. Click + Add key manager.

  4. Under Where are OAuth2 applications managed?, choose where OAuth2 applications are managed, and fill in the fields. When you select In the identity server, the form shows only Name, Discovery URL, Token endpoint, and Key type.

    FieldRequiredDescription
    NameYesThe name that developers see when they choose where to create keys, such as Production.
    Where are OAuth2 applications managed?YesIn the portal to let the portal register applications over DCR, or In the identity server to let developers import the client ID of an application that they created.
    Discovery URLNoThe OpenID Connect discovery document of the key manager, such as .../.well-known/openid-configuration. Click the Fetch endpoints icon button to fill in the token, registration, and authorization endpoints from it. Shown only when you add a key manager, not when you edit one.
    Token endpointYesThe endpoint that the portal sends client_credentials token requests to.
    Key typeYesProduction for live traffic, or Sandbox for testing against sandbox endpoints. Every key created through this key manager has this type.
    Key manager typeIn the portalThe type of the key manager. Not shown when you select In the identity server, which always uses the Provision type.
    Registration endpointIn the portalThe RFC 7591 client registration endpoint.
    Authorization endpointNoThe authorization endpoint. A key manager that only issues client_credentials tokens does not have one.
    How the portal authenticates to itIn the portalThe credential that the portal uses to register applications: Client credentials, Basic authentication, or API key. The fields that follow depend on this choice.
    Client ID and Client secretWith client credentialsThe portal's own OAuth2 client on the key manager, not a developer's.
    ScopesNoThe scopes that the portal requests in its token request. Add them if the key manager requires specific scopes to use its registration endpoint.
    Resource indicatorNoAn RFC 8707 resource value that the portal sends in its token request. Some key managers do not issue a token that their registration endpoint accepts without it.
    Username and PasswordWith basicThe HTTP Basic credentials for the registration endpoint.
    API key, Header name, and SchemeWith API keyThe key, the header that carries it (Authorization by default), and an optional prefix such as Bearer.
    Grant types developers may useNoLimits the grant types that developers can select when they generate an OAuth2 key. Leave it empty to allow all the grant types that the key manager type supports.

    Fields marked In the portal apply only when the portal registers applications.

  5. Click Add key manager.

warning

You cannot change the Key type or Key manager type of a key manager after you create it. Keys that are already issued keep the type that they were created with. To change either, register a new key manager.

Edit or Delete a Key Manager​

  • To edit a key manager, click its name or the edit icon. You can change the name, endpoints, and credentials, but not the key manager type or key type.

  • To delete a key manager, click the delete icon. You cannot delete or rename a key manager while keys issued through it exist. Remove those keys first.

note

Deleting a key manager stops the applications that rely on it from getting new tokens through the portal. Tokens that the key manager already issued stay valid until they expire.

Next Steps​

  • Key Managers - Learn how key managers issue tokens, and about the default key manager
  • OAuth2 Keys - Generate or add keys on a key manager as a developer

Was this page helpful?