Skip to content

Conversation

@benbroadaway
Copy link
Collaborator

@benbroadaway benbroadaway commented Oct 21, 2025

Currently, Form API (get, submit) doesn't work with API Key auth realm because the user principal's groups are not retrieved (we probably don't want to do that for every API call) when the form is restricted by runAs.ldap.*. This change looks up those groups if/when they are necessary.

@benbroadaway benbroadaway changed the title server: retrieve user ldap groups for form access assertion concord-server: retrieve user ldap groups for form access assertion Oct 21, 2025
@benbroadaway benbroadaway requested review from a team, brig and ibodrov October 22, 2025 17:30

if (p.getRealm().equals("apikey")) {
// apikey realm doesn't look up groups by default, get them now
return ldapUserInfoProvider.getInfo(null, p.getUsername(), p.getDomain()).groups();
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's also UserManager#getCurrentUserInfo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ahhh that's tidier and should work.

@ibodrov ibodrov merged commit 035cd79 into master Oct 28, 2025
4 checks passed
@ibodrov ibodrov deleted the bb/form-access-get-api-key-ldap-groups branch October 28, 2025 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants