Skip to main content

How to setup SSO using OIDC

Learn how to set up OIDC-based Single Sign-On (SSO) for your Secure.com application, including configuration steps, claim mapping, and integration with any OIDC-supported Identity Provider.

M
Written by Matt

This guide explains how to integrate Okta as an Identity Provider (IdP) with Secure.com using OIDC (OpenID Connect) for Single Sign-On (SSO).

Although the example below uses Okta, the same setup logic applies to any OIDC-compliant IdP, such as Azure AD, Google Cloud Identity, Auth0, or OneLogin - only the UI navigation steps differ.


Step 1: Create an OIDC Application in Okta

  • Log in to your Okta Admin Console.

  • Navigate to: Applications → Applications → Create App Integration

  • Choose the following options:

    • Sign-in method: OIDC - OpenID Connect

    • Application type: Web Application

  • Click Next.

  • Fill in the application details:

    • App Name: Secure.com SSO

    • Sign-in Redirect URIs:

https://<HOST>/realms/<ORG_NAME>/broker/<ALIAS>/endpoint
  • Example:

https://staging-secure-iam.secure.com/realms/SecureOrg/broker/okta/endpoint
  • Click Save.

  • Note down the following details for later use:

    • Client ID

    • Client Secret

    • Issuer URL

      • Example:

https://trial-1801540-admin.okta.com/oauth2/default/.well-known/openid-configuration

💡Note:

These credentials will be used in your Secure.com application’s SSO setup page.

Step 2: Locate Your Okta Issuer URL

You can find the Issuer URL in two ways:

Option 1: Using Well-Known Configuration URL

https://<your-okta-domain>/oauth2/default/.well-known/openid-configuration

This returns JSON metadata with details such as issuer, authorization_endpoint, token_endpoint, and userinfo_endpoint.

Option 2: Via Okta Admin UI

  • Go to Security → API → Authorization Servers.

  • Click your authorization server (usually “default”).

  • Copy the Issuer URL shown there.

Step 3: Configure Trusted Origins in Okta

  • Navigate to Security → API → Trusted Origins.

  • Click Add Origin and provide:

    • Origin URL:

https://<your-host>
  • Example:

https://staging-secure-iam.secure.com
  • Enable Redirect and CORS options.

Step 4: Configure Authorization Server Policies

  • Go to Security → API → Authorization Servers → Access Policies.

  • Ensure a policy exists allowing:

    • All Clients (or the specific Secure.com Client ID)

    • All Users

    • Grant Type: Authorization Code

    • Scopes: openid, email, etc.

💡Note:

If missing, click Add Rule and configure the above parameters.

Step 5: Create Claims in Okta

  • Go to Authorization Server → Claims.

  • Add the following claims:

Name

Token Type

Value

Include In Scope

spring_app_username

ID / Access Token

user.email

Any

spring_app_email

ID / Access Token

user.email

Any

spring_app_firstname

ID / Access Token

user.firstName

Any

spring_app_lastname

ID / Access Token

user.lastName

Any

These claims ensure that user details (username, email, first name, last name) are included in tokens shared with your Secure.com app.

Step 6: (Optional) Setup Role Groups

If you want to map user roles dynamically:

  • Go to Directory → Groups.

  • Create:

    • spring-admin

    • spring-analyst

    • spring-editor

  • Assign users to these groups.

Step 7: Configure SSO in Your Secure.com Application

  • In your Secure.com admin panel, go to:
    ​Settings → Security → Setup SSO

  • Fill in the following:

Field

Example Value

Alias

okta-oidc

Display Name

Login with Okta

Discovery URL

Client ID

(from Okta)

Client Secret

(from Okta)

Username Claim

spring_app_username

Email Claim

spring_app_email

First Name Claim

spring_app_firstname

Last Name Claim

spring_app_lastname

  • Choose Default Role (analyst) or enable Group-based Role Sync if using Okta groups.

  • Map roles:

    • Admin → spring-admin

    • Editor → spring-editor

    • Analyst → spring-analyst

    • Role Key → spring_roles

  • The Discovery URL will automatically fetch:

    • Authorization Endpoint

    • Token Endpoint

    • JWKS URL

    • Issuer

  • Click Save to complete the setup.

Step 8: (Optional) Configure Identity Provider Mappers

  • Inside the Secure.com application:

    • Go to Settings -> SSO → Okta → Mappers.

    • Ensure the following mappings:

Mapper Name

Mapper Type

Claim

Target

username

Attribute Importer

app_user_name

username

email

Attribute Importer

app_user_email

email

These mappings make sure that user attributes, such as email and username, are accurately imported into your system after login.

Step 9: Verify & Test

Ensure the following before testing:

  • OIDC app created in Okta

  • Trusted origin configured

  • Authorization policy set

  • Claims created

  • SSO configured in Secure.com

  • Identity provider mappers configured


💡Important Note

  • While this article demonstrates integration using Okta, the same setup logic applies to any OIDC-supported Identity Provider such as Azure AD, Auth0, Google Identity, or JumpCloud.

  • Only the console navigation and terminology may differ - the underlying fields (Client ID, Secret, Issuer, Redirect URI, and Claims) remain identical.

Did this answer your question?