OAuth 2.0 - Okta
Last updated
Last updated
OAuth 2.0 with OpenID Connect with Okta provides the ability to use Okta as the OAuth vendor and have users login before accessing a web flow in an application.
The following link will provide all of the necessary steps for creating an Okta Integration: Build a SSO Integration. This is required to obtain the Client ID of the integration as well as the Base Authorization Server URL.
When asked for a Redirect URI, add one of the following Redirect URIs, depending on where your Org is based.
[block:callout] { "type": "info", "title": "Redirect URIs", "body": "US Realm\n\nhttps://us.api.prod.airkit.com/internal/session-gateway/oauth/callback
EU Realm\nhttps://eu.api.prod.airkit.com/internal/session-gateway/oauth/callback
\nAP Realm \nhttps://ap.api.prod.airkit.com/internal/session-gateway/oauth/callback
" } [/block]
Access your app, go to Configuration Builder > Global and follow these steps:
From the App Authentication Type dropdown, select Secure App
In Authentication Method, select OAuth 2.0 w/ OpenID Connect
As OAuth Vendor, choose Okta
Enter your OAuth Client ID and the Base Authorization Server URL
Save your app
After setting up you OAuth authentication, go to Connection Builder and click on the On Authentication Success Event.
The “On Authentication Success” event will run when the user is authenticated. On this event, there is the event
namespace where you can access data about the user.
Includes data such as:
Picture
Name
Locale
nameId refers to the user’s email address they authenticated with.
To access this data and store it in a session variable, In the Inspector section, click on the ‘+’ icon under Actions and add two Set Variable actions from the Data options to get the attributes of the users that signed into the app.