Skip to content

Commit f9b3a9f

Browse files
author
Matt Raible
authored
Add paragraph about roles claim
1 parent b3c8203 commit f9b3a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ If you don't have one, [create an Okta Developer account](https://developer.okta
7474
* Base URIs: `http://localhost:8081`
7575
* Login redirect URIs: `http://localhost:8081/login`
7676

77+
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 `.*`.
78+
7779
Change `security.oauth2.*` properties in the following files to enter your client ID and client secret.
7880

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

0 commit comments

Comments
 (0)