Okta (OIDC)
Prerequisites
Permissions required for registering and configuring an app in Okta
The Okta account must have permission to manage applications in Okta. Ideally the Okta account should be in the Super administrator role.
Implement Single Sign-On (SSO)
It is recommended to use two separate browser tabs for the Keycloak (K) and Okta (O) portals to make it easier to apply the settings.
(K) Open a new tab in your browser and login to the target Spark tenant. Access the Keycloak console from the User menu.
(K) Login to the Keycloak Admin Console using your admin credentials.
(K) Expand the Add provider dropdown and choose OpenID Connect v1.0.
(K) Fill in values for the Alias and Display Name fields. The Alias should be a lowercase name without special symbols. Please note this Display Name will appear in the button on the Spark login page.
(K) Enter any name in the Display Name field. Please note this Display Name will appear in the button on the Spark login page.
(K) Copy the Redirect URI value.
(O) In a second browser tab, sign in to Okta.
(O) In the left tab, expand Applications and click on Applications.
(O) Click Create App Integration.
(O) For Sign-in method choose OIDC - OpenID Connect and for Application type choose Web Application. Click Next.
(O) Enter a name in the App integration name field.
(O) For Grant type select Authorization Code.
(O) In the Sign-in redirect URIs field, paste the modified Redirect URI.
(O) For Controlled access, select Allow everyone in your organization to access. Check Enable immediate access with Federation Broker Mode then click Save.
(O) Copy the Client ID value.
(K) Return to Keycloak. In the Client ID field, paste the value copied in the previous step.
(O) Switch to Okta. Copy the the Client Secret.
(K) Return to Keycloak. In the Client Secret field, paste the value copied in the previous step.
(O) Switch to Okta. Expand Security on the left pane and click on API.
(O) Click on the name of your authorization to bring up the settings page.
(O) Copy the Metadata URI.
(K) Return to Keycloak. In the Discovery endpoint field, paste the value copied in the previous step.
(K) Click Add.
(K) Expand Advanced.
(K) For the Scopes field, enter
openid email profileand click Save.(O) Okta Authorization Servers require an Access Policy to define which clients (applications) that can request tokens under what conditions. If there is no default Access Policy that applies to all applications, then you must create one for your Okta OIDC app to ensure it can receive tokens.
(O) In the left pane, expand Security, then select API.
(O) Navigate to the Authorization Servers tab and click on the name of your Authorization Server.
(O) Open the Access Policies tab.
(O) Click Add New Access Policy.
(O) Provide a name and description. In the Assign to section, select The following clients, enter the first three letters of your Okta OIDC App, select your app, and click Create Policy.
(O) Click Add Rule.
(O) Enter a name and uncheck Client Credentials and Device Authorization. Leave other settings as default unless your organization requires different values, then click Create Rule.
Navigate to your Spark tenant and sign in using the newly created provider. There will be a button on the Keycloak login page with the display name defined earlier.
Configure Okta groups to Spark user groups
It is recommended to use two separate browser tabs for the Keycloak (K) and Okta (O) portals to make it easier to apply the settings. In this guide, we will setup the automatic roles for the tenant-admin role.
(O) In the first tab sign in to Okta.
(O) Expand Directory and click on Groups.
(O) Create a group and prefix it with spark (or any preferred prefix), for example
spark-tenant-admin.(O) Add the test user to the group.
(O) On the left pane, expand Security and click on API.
(O) Make sure Authorization Servers tab is selected and click on the name of the server.
(O) Select Claims and then click Add Claim.
(O) Provide the following values then click Create.
KeyValueName
groupsInclude in token type
ID token and AlwaysValue Type
GroupsFilter
Matches regex and .*Include in
Any scopes(K) Open a new tab in your browser and login to the target Spark tenant. Access the Keycloak console from the User menu.
(K) Login to the Keycloak Admin Console using your admin credentials.
(K) Select Identity Providers from the left pane and then the identity provider you configured in the previous section.
(K) Select the Mappers tab and then Add mapper.
(K) Provide the following values.
NameValueName
tenant-adminSync mode override
forceMapper type
Advanced Claim to Group(K) Click Add Claims.
(K) Provide the following values:
KeyValuegroupstenant-admin(K) Leave Regex Claim Values as Off (which is the default).
(K) Click Select Group, choose
tenant-admin, then click Select.(K) Click Save.
Sign in into Coherent Spark with your test account. Click on your initials and hover over the groups icon to confirm your membership in
tenant-admin.We highly recommend creating at least a few additional app groups relevant for Private tenants:
Group for
supervisor:pfuser accounts. In Spark,supervisor:pfmembers can manage permissions across all folders.Groups for "standard" user accounts, e.g.
user:teamA,user:teamB. These groups can be assigned to the users in your organization not responsible for tenant administration. Creating multiple roles for "standard" user accounts can be useful to separate access between teams.
Create a bookmark application for Coherent Spark
Last updated
