We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account 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
When the token returned by oidc provider is like :
{ ...... "custom:groupList": [ <my_custom_group> ], "custom:group": <my_custom_group> "exp": ... }
The mapping of oidc groups and akhq groups is not working if the groups-fields is not a List.
For the example given above :
This configuration will WORK
oidc: enabled: true providers: cognito: label: "Login with oidc" groups-field: custom:groupList groups: - name: <my_custom_group> groups: - admin
But this Does not WORK
oidc: enabled: true providers: cognito: label: "Login with oidc" groups-field: custom:group groups: - name: <my_custom_group> groups: - admin
After investigation , le pb comes from this function
protected List<String> getOidcGroups(Oidc.Provider provider, OpenIdClaims openIdClaims) { List<String> groups = new ArrayList<>(); if (openIdClaims.contains(provider.getGroupsField())) { Object groupsField = openIdClaims.get(provider.getGroupsField()); if (groupsField instanceof Collection) { groups = ((Collection<Object>) groupsField) .stream() .map(Objects::toString) .collect(Collectors.toList()); } } return groups; }
why are we verifying "groupsField instanceof Collection" ?? It should be a List or a Single element.
The text was updated successfully, but these errors were encountered:
is this is not the same than this PR: #1263 ?
Sorry, something went wrong.
Hi @tchiotludo , yes its the same case. It is possible to release this fix ?
done in #1263
No branches or pull requests
When the token returned by oidc provider is like :
{
......
"custom:groupList": [
<my_custom_group>
],
"custom:group": <my_custom_group>
"exp":
...
}
The mapping of oidc groups and akhq groups is not working if the groups-fields is not a List.
For the example given above :
This configuration will WORK
But this Does not WORK
After investigation , le pb comes from this function
why are we verifying "groupsField instanceof Collection" ?? It should be a List or a Single element.
The text was updated successfully, but these errors were encountered: