Okta Configuration using OIDC (preferred over SAML)
Log in to the admin area to Start an OIDC App Integration (these steps follow
https://help.okta.com/en-us/content/topics/apps/apps_app_integration_wizard_oidc.htm
with the insertion of group steps and appendage of access policy steps).
Create a PDC Group
- On the left nav bar, visit “Directory” -> “Groups”
- Click “Add group”
- Set “Name” to
PDC - Set “Description” to
Users who may access the Philanthropy Data Commons - Click “Save”
- Click the newly created “PDC” group
- Click “Assign people” and add at least one user.
Create a PDC Application
-
On the left nav bar, visit “Applications” -> “Applications”
-
Click “Create App Integration”
-
Click “OIDC”
-
Select “Web Application”
-
Click “Next”
-
Add “App Name” of
Philanthropy Data Commons -
Leave “Proof of possession” unchecked
-
Set “Grant type” to
Authorization codeonly -
Set “Sign-in redirect URI” to the endpoint provided by the PDC team, similar
tohttps://example.org/realms/pdc/broker/foundation-okta-oidc/endpoint
Important: the name followingbroker/here needs to match the agreed
alias mentioned above -
Clear the “Sign-out redirect URIs” by clicking the X
-
Under “Assignments” select
Limit access to selected groups -
Set the “Selected group(s)” to the
PDCgroup created earlier -
Click “Save”
-
Confirm under “Login” that “Login initiated by” is
App Only -
Share the “Client ID” from “Client Credentials” with the PDC team
-
Under “Client Credentials” click “Edit”
-
Set “Client authentication” to
Public key / Private key -
Check “Require PKCE as additional verification”
-
Under “Public Keys” -> “Configuration”, check “Use a URL to fetch keys…”
-
Set the URL to the JWKS URL of the PDC Keycloak server, provided by the PDC
team, similar to
https://example.org/realms/pdc/protocol/openid-connect/certs -
Click “Save”
-
Click “Save” at an “Existing client secrets will no longer be used” warning.
Create an Access Policy and Rule for the Authorization Server
- On the left nav bar, visit “Security” -> “API” (way down there)
- Click the desired Authorization Server name, usually “default”
- Copy the “Metadata URI” value and send it to the PDC team
- Click the “Access Policies” tab
- Click “Add New Access Policy”
- Set “Name” to
PDC - Set “Description” to
Allow users to authenticate to PDC - Set “Assign to” to
The following clients: - Type
Pin the input box and then pick the “PDC” client created above - Click “Create Policy”
- Under the new PDC policy, click “Add rule”
- Set the “Rule Name” to
Issue tokens to users authenticating to PDC - Reduce the token lifetimes such as to
5 minutes(access) and90 minutes - Click “Create rule”.
PDC Keycloak configuration with Okta via OIDC
Add an OIDC Identity Provider to the PDC Realm.
See also this Keycloak documentation:
https://www.keycloak.org/docs/26.2.5/server_admin/index.html#_identity_broker_oidc
- Visit “Identity Providers”
- Click “Add Provider” of type “OpenID Connect v1.0.” If no existing providers
are present such that “Add Identity Provider” is not available, click “OpenID
Connect v1.0” under “User defined” - Set the “Alias” to the descriptive, simple, unique alias named above, e.g.
foundation-okta-oidc, Important: this alias sets the broker or
“Single Sign-on URL” used by Okta for integration and therefore must match
the “Single Sign-on URL” configured in Okta - Set the “Display name” to describe the organization that is herein linked
- Under “OpenID Connect Settings” leave “Use discover endpoint”
On - Set “Discovery endpoint” to the “Metadata URI” from Okta, similar to
https://example.org/oauth2/default/.well-known/oauth-authorization-server - Set “Client authentication” to
JWT signed with private key - Set “Client ID” to the “Client ID” from Okta, similar to
0oatc6chn9IXY0389697 - Leave “Client Secret” blank (it is not required due to using a keypair)
- Leave “Client assertion signature algorithm” to
Algorithm not specified - Leave “Client assertion audience” blank
- Leave “Add X.509 Headers to the JWT”
Off - Click “Add”
- Under “OpenID Connect Settings”, ensure “Validate Signatures” is
On - Set “Use PKCE” to
On - Set “PKCE Method” to
S256 - Expand “Advanced”
- Set “Pass login_hint” to
On - Set “Scopes” to
openid profile email - Set “Trust Email” to
On - Set “Hide on login page” to
On - Set “Sync mode” to
Force - Click “Save”
- Click the “Mappers” tab
- Click “Add mapper”
- Set “Name” to
Import First Name From Profile Claim - Set “Mapper type” to
Attribute Importer(from the dropdown) - Set “Claim” to
profile - Set “User Attribute Name” to
firstName(from the dropdown) - Click “Save”
- Click “Provider details” near the top to go back to the “Mappers” tab
- Click “Add mapper”
- Set “Name” to
Import Last Name From Profile Claim - Set “Mapper type” to
Attribute Importer(from the dropdown) - Set “Claim” to
profile - Set “User Attribute Name” to
lastName(from the dropdown) - Click “Save”
- Click “Provider details” near the top to go back to the “Mappers” tab
- Click “Add mapper”
- Set “Name” to
Import Email Address From Email Claim - Set “Mapper type” to
Attribute Importer(from the dropdown) - Set “Claim” to
email - Set “User Attribute Name” to
email(from the dropdown) - Click “Save”.
Link the newly added IdP to its corresponding organization.
See also this Keycloak documentation:
https://www.keycloak.org/docs/26.2.5/server_admin/index.html#_managing_identity_provider_
- Visit “Organizations”
- Open the organization
- Click the “Identity Providers” tab
- Click “Link identity provider”
- Select the IdP (created above) from the “Identity provider” dropdown menu
- Select the organization’s domain name from the “Domain” dropdown menu
- Keep “Hide on login page” set to
On - Set “Redirect when email domain matches” to
On - Click “Save”.
This content was automatically generated from GitHub. Any edits made on WordPress will be lost.