Okta
Integrate OwnID password free authentication into your Okta flow
By integrating Okta with OwnID, you can implement the full set of OwnID features to simplify and streamline your user login experience.
How it Works
OwnID supports integration with Okta through our pre-built Okta Connector.
Configuration on the Okta side happens through your Okta Admin Dashboard. Ensure you have an account with admin access in Okta.
Complete these five basic steps to integrate OwnID with Okta:
Step 1 - Extend Okta User Schema.
Step 2 - Create Okta API Token.
Step 3 - Create the OwnID App.
Step 4 - Create an Identity Provider.
Step 5 - Frontend Integration.
Step 1 - Extend Okta User Schema
Add an attribute in Okta called ownIdData
. This is used to store user authentication data in Okta.
-
In your Okta Admin Dashboard go to Directory -> Profile Editor.
-
Select the User (default) user group. Figure 1. Profile editor
-
Click +Add Attribute. Figure 2. Add attribute
-
Complete the attribute configuration as shown below. Figure 3. Attribute configuration
-
Click Save.
Securing User’s Personal Data
OwnID does not store or process any user data. Users’ public keys and device information are stored on your platform.
Private keys are kept exclusively on the user’s device and are never transmitted elsewhere.
Step 2 - Create Okta API Token
-
In your Okta Admin Dashboard, go to: Security -> API -> Tokens tab.
-
Click Create Token. Figure 4. Create API token
-
Fill in the token name - “OwnID API Token”.
-
Copy the token value. We will use it in the next step. Figure 5. Copy API token
-
Click OK, got it after copying the token.
Step 3 - Create the OwnID App
We’ll create a new OwnID app using the Okta Connector.
An OwnID App is what connects the existing identity provider used by your website with the OwnID widget you insert on the front end.
OwnID widgetEach of your OwnID Apps acts as the central point of configuration for each of your integrations. These no-code Apps are created, hosted, and maintained entirely within the OwnID Console environment.
When you create an App, it’s assigned a unique appId
automatically. Use that appId
in OwnID SDK interaction from your website’s front end.
To Create an OwnID App
-
Login to the OwnID Console (or create your account).
-
Click +Create Application from the Apps screen.
-
Enter a name for your application in the App name field.
-
From the Choose your integration panel, select the Okta tile.
-
Click Next.
-
Click Explore my App on the “Congratulations” popup.
Set Okta Integration Parameters
In your Okta integration page, fill in the following information:
-
In Okta Settings, set the Site Domain - e.g: https://acme.okta.com
-
In Okta Settings, set the API Token value you created above.
-
In Okta Settings, skip the Identity Provider ID for now. We will get this in a later step.
-
In OpenID Connect settings, set Redirect URIs by adding one or more Okta redirect URIs, typically in the format
https://your-auth-domain.com/oauth2/v1/authorize/callback
. -
Click Save Changes.
The other values in this page will be used in the next step.
Step 4 - Create an Identity Provider
Create an OwnID OIDC Identity Provider.
-
In your Okta Admin Dashboard, go to Security -> Identity providers.
-
Click Add identity provider. Figure 6. Add identity provider
-
From the provider options, select the OpenID Connect IdP tile. Figure 7. OpenID Connect IdP
-
The General settings form opens. Configure it with the following general settings: Figure 8. IdP settings
-
For the Client details values use the
Client ID
andClient Secret
from the OwnID application created in the previous step as shown. Figure 9. Client details -
In Endpoints, enter the values from the OwnID application created in the previous step?
-
Set the remaining details as shown below: Figure 10. Authentication settings
-
Click Save.
Be sure to copy the IdP ID
value from the Summary_ so we can use it in the next step.
Figure 11. IdP Summary
Step 5 - Frontend Integration
-
In your Okta Admin Dashboard, go to Customizations -> Brands.
-
Select your relevant brand.
-
Click Customize on the Sign-in page panel. Figure 12. Brand customization in Okta
-
Ensure the Code Editor option is toggled on (requires a custom domain). Figure 13. Code editor
-
Under the
<body>
tag, locate the{{{OktaUtil}}}
definition, then add the OwnID script for loading the OwnID WebSDK below theOktaUtil
line.The script could be fetched from the integration settings of the app in the OwnID Console. Once you fill in the Identity Provider ID created in the previous step, you will have a full snippet ready to copy.
Alternatively, you can use the following snippet and fill in the placeholders:
-
Replace
<appId>
with theappId
from the OwnID application created in step 3. -
Replace
<idpId>
with theIdP ID
from step 4.
-
- Click Save and Publish.
Enjoy your Okta-integrated passwordless authentication!
Next Steps
Ready to deploy?
YES!
Take me to the Deployment Checklist
Was this page helpful?