This guide goes through the steps of configuring Okta OAuth for Elements.
Setting up an Okta Application Integration
First, open Okta's website and sign in with the appropriate account to create and configure the Okta Elements Integration.
Elements will need 3 pieces of configuration to connect using this app. These are: OktaDomain, AppId and AppSecret.
The steps to create the integration:
After logging in, we see the following interface, click on the Admin button in the upper right corner.
On the Admin interface, select the Applications menu item in the left menu, then Applications again.
Click the Create App Integration button. In the pop-up window, select the OIDC - OpenID Connect, then in the Application type options that opens, select Web Application, then press the Next button.
Give a name to the application integration.
Fill in the other settings options, then click Save.
After saving the configuration, we can see the interface of the app integration. We will need the automatically generated Client ID and Client Secret later to configure Okta with Elements
Configuring Elements to use Okta OAuth
To configure Elements, open the appsettings.json located in the Elements application folder, then:
- Navigate to the LoginSettings section
- Set the AuthType to OAuth
- Navigate to the OAuthSettings section
- Set the OAuthType to Okta
- Fill out the Okta section with:
- AppId (Client ID from the Okta app integration)
- AppSecret (Client Secret from the Okta app integration)
In the upper right corner, the domain can be seen by opening the menu item of the logged in user. (Don't forget to add the necessary https:// part to it.)appsettings.json part: