Skip to content

Commit

Permalink
Add paragraph about roles claim
Browse files Browse the repository at this point in the history
Matt Raible authored Apr 30, 2018
1 parent b3c8203 commit f9b3a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -74,6 +74,8 @@ If you don't have one, [create an Okta Developer account](https://developer.okta
* Base URIs: `http://localhost:8081`
* Login redirect URIs: `http://localhost:8081/login`

You need to add a `roles` claim to your ID Token, so your groups in Okta are translated to Spring Security authorities. In your Okta developer console, navigate to **API** > **Authorization Servers**, click the **Authorization Servers** tab and edit the default one. Click the **Claims** tab and **Add Claim**. Name it "roles" and include it in the ID Token. Set the value type to "Groups" and set the filter to be a Regex of `.*`.

Change `security.oauth2.*` properties in the following files to enter your client ID and client secret.

* [edge-service/src/main/resources/application.properties](../../tree/oauth/edge-service/src/main/resources/application.properties)

0 comments on commit f9b3a9f

Please sign in to comment.