Hanzo

PingOne OIDC

Learn how to configure PingOne OIDC for Hanzo KMS SSO.

PingOne OIDC SSO is a paid feature. If you're using Hanzo KMS Cloud, then it is it.

1.1. From the Application's Page, create a new OIDC Web App application. OIDC pingone create application

1.2. Enable the application by pressing the "Enable" toggle. OIDC PingOne Enable Application

1.3. In the Application "Configuration" tab, press the "Edit" pencil icon to configure the application callback URI. OIDC PingOne Edit Application Configuration

1.4 Set the Redirect URL to https://app.kms.hanzo.ai/api/v1/sso/oidc/callback and press the "Save" button. OIDC PingOne Edit Redirect URI

If you're self-hosting Hanzo KMS, then you will want to replace https://app.kms.hanzo.ai with your own domain.

1.5 After configuring the redirect URL, go to the "Attribute Mappings" tab and press the "Edit" pencil icon to configure the attribute mappings. OIDC PingOne Edit Attribute Mappings

1.6 Map the following attributes:

  • email -> Email Address
  • name -> Username OIDC PingOne Edit Attribute Mappings

Once done, press the "Save" button.

2.1. Open the "Overview" tab and copy the Client ID and Client Secret. OIDC PingOne Application Credential

2.2. Still in the "Overview" tab, scroll down to the Connection Details section and retrieve the OIDC Discovery Endpoint. OIDC PingOne OIDC Discovery Endpoint

Keep these values handy as we will need them in the next steps.

3.1. Back in Hanzo KMS, head to the Single Sign-On (SSO) page and select the General tab. Click Connect for OIDC. OIDC SSO Connect

3.2. For configuration type, select Discovery URL. Then, set Discovery Document URL, Client ID, and Client Secret from step 2.1 and 2.2.

OIDC PingOne paste values into Hanzo KMS

Currently, the following JWT signature algorithms are supported: RS256, RS512, HS256, and EdDSA

Once you've done that, press Update to complete the required configuration.

Enabling OIDC allows members in your organization to log into Hanzo KMS via PingOne

OIDC PingOne enable OIDC

Enforcing OIDC SSO ensures that members in your organization can only access Hanzo KMS by logging into the organization via PingOne.

To enforce OIDC SSO, you're required to test out the OpenID connection by successfully authenticating at least one PingOne user with Hanzo KMS. Once you've completed this requirement, you can toggle the Enforce OIDC SSO button to enforce OIDC SSO.

We recommend ensuring that your account is provisioned using the application in PingOne prior to enforcing OIDC SSO to prevent any unintended issues.

In case of a lockout, an organization admin can use the Admin Login Portal in the /login/admin path e.g. https://app.kms.hanzo.ai/login/admin.

If you are only using one organization on your Hanzo KMS instance, you can configure a default organization in the Server Admin Console to expedite OIDC login.

If you're configuring OIDC SSO on a self-hosted instance of Hanzo KMS, make sure to set the AUTH_SECRET and SITE_URL environment variable for it to work:

  • AUTH_SECRET: A secret key used for signing and verifying JWT. This can be a random 32-byte base64 string generated with openssl rand -base64 32.
  • SITE_URL: The absolute URL of your self-hosted instance of Hanzo KMS including the protocol (e.g. https://app.kms.hanzo.ai)

How is this guide?

Last updated on