8000 Add custom group claim by Klucherev · Pull Request #5483 · traccar/traccar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 4 commits into from
Dec 22, 2024
Merged

Conversation

Klucherev
Copy link
Contributor
@Klucherev Klucherev commented Dec 19, 2024

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

@Klucherev
Copy link
Contributor Author

@tananaev Please check

Comment on lines 97 to 99
URI.create(config.getString(Keys.OPENID_ISSUER_URL) + "/.well-known/openid-configuration"))
.header("Accept", "application/json")
.build();
Copy link
Member

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");


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this also

Copy link
Contributor Author
@Klucherev Klucherev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed extra spaces

@tananaev
Copy link
Member

It doesn't look like you fixed all the places.

@Klucherev
Copy link
Contributor Author

It doesn't look like you fixed all the places.

Sorry, i think is is done now

@tananaev tananaev merged commit d1a7121 into traccar:master Dec 22, 2024
1 check passed
@tananaev
Copy link
Member

Merged, thank you.

@Klucherev Klucherev deleted the add-custom-group-claim branch December 22, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0