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

feat: add new endpoints to add organizations to an existing user #1732

Draft
wants to merge 8 commits into
base: staging
Choose a base branch
from

Conversation

tmy1313
Copy link
Contributor

@tmy1313 tmy1313 commented Oct 29, 2024

OCD-4721

@tmy1313 tmy1313 requested review from andlar and kekey1 October 29, 2024 13:16
@@ -92,6 +96,24 @@ public UserManagementController(UserManager userManager, InvitationManager invit
this.authorizationLengthInDays = authorizationLengthInDays;
}

@Operation(summary = "Update the currently logged in user with an additional organization.",
description = "Gives the user permission on the object in the invitation (usually an additional ACB or Developer)."
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this documentation is copied from the CHPL-login workflow methods. The line about which endpoints to call in which order is not right for the Cognito methods. Can you check the other Cognito auth methods as well? They are not currently in the diff but it looks like they might have the same documentation.

@@ -181,9 +186,28 @@ public User getUserInfo(UUID cognitoId) throws UserRetrievalException {
}
}
return null;
}

public User getUserByPassingCognitoUserAttributeCache(String accessToken) throws UserRetrievalException {
Copy link
Contributor

Choose a reason for hiding this comment

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

When I first read this method name I thought it was two words "by passing" but I think it's meant as one word "bypassing" - can you change the camelcase to make this clear? getUserBypassingCognitoUserAttributeCache, or maybe even simpler getUserNoCache?

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