-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add custom group claim #5483
New issue
Have a question about this project? Sign up for a free GitHub accou 8000 nt to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom group claim #5483
Conversation
@tananaev Please check |
URI.create(config.getString(Keys.OPENID_ISSUER_URL) + "/.well-known/openid-configuration")) | ||
.header("Accept", "application/json") | ||
.build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please undo all the formatting changes.
@@ -89,11 +91,12 @@ public OpenIdProvider(Config config, LoginService loginService, HttpClient httpC | |||
baseUrl = new URI(WebHelper.retrieveWebUrl(config)); | |||
callbackUrl = new URI(WebHelper.retrieveWebUrl(config) + "/api/session/openid/callback"); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed extra spaces
It doesn't look like you fixed all the places. |
Sorry, i think is is done now |
Merged, thank you. |
Some OIDC providers don't have "groups" claim in id token, but have "roles". With this setting in traccar.xml there is ability to change it to work properly.
Example is
<entry key='openid.groupsClaimName'>roles</entry>
I didn't find how to add new commits to PR so opened new one