Skip to content
New issue

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

OIDC-Fed: accounts created with an openidfed provider not returned by endpoint #489

Open
thomaschiozzi-tndigit opened this issue Jan 10, 2024 · 1 comment

Comments

@thomaschiozzi-tndigit
Copy link
Collaborator

The endpoint /users/{realm}/{userId}/account , managed by the block of code below, does not return any account generated with an openidfed provider

@GetMapping("/users/{realm}/{userId}/account")
@Operation(summary = "list accounts for a specific user in realm")
public Collection<UserAccount> listUserAccounts(
@PathVariable @Valid @NotNull @Pattern(regexp = SystemKeys.SLUG_PATTERN) String realm,
@PathVariable @Valid @NotNull @Pattern(regexp = SystemKeys.SLUG_PATTERN) String userId
) throws NoSuchUserException, NoSuchRealmException, NoSuchProviderException, NoSuchAuthorityException {
logger.debug(
"get accounts for user {} for realm {}",
StringUtils.trimAllWhitespace(userId),
StringUtils.trimAllWhitespace(realm)
);
return userManager.listUserAccounts(realm, userId);
}

as a result, among the others, accounts created with an openidfed provider cannot be viewed and managed by console (note that just accounts are not visbile: users created when logging with an openidfed provider are indeed visible).

@matteo-s
Copy link
Collaborator

good catch. We currently lack account service for openidfed.
Moving to 'enhancement' because it is not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants