-
Notifications
You must be signed in to change notification settings - Fork 17
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
base: staging
Are you sure you want to change the base?
Conversation
OCD-4721
OCD-4721
@@ -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)." |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
OCD-4721