-
Notifications
You must be signed in to change notification settings - Fork 18
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
Userdetails web services refactoring #143
Conversation
…LivingAustralia/userdetails into epic/cognito/webServices � Conflicts: � src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy � src/main/groovy/au/org/ala/userdetails/IUserService.groovy � userdetails-gorm/src/main/groovy/au/org/ala/userdetails/gorm/GormUserService.groovy � userdetails-plugin/grails-app/controllers/au/org/ala/userdetails/PropertyController.groovy � userdetails-plugin/grails-app/controllers/au/org/ala/userdetails/UserDetailsController.groovy � userdetails-plugin/grails-app/services/au/org/ala/userdetails/AuthorisedSystemService.groovy
…ngAustralia/userdetails into epic/cognito/webServices � Conflicts: � userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
…pic/cognito/webServices # Conflicts: # userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
@sbearcsiro , This PR is ready to review. |
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.
Looks good, just needs to address the comments IMHO
userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
Outdated
Show resolved
Hide resolved
userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
Show resolved
Hide resolved
userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
Show resolved
Hide resolved
userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy
Show resolved
Hide resolved
userdetails-gorm/src/main/groovy/au/org/ala/userdetails/gorm/GormUserService.groovy
Outdated
Show resolved
Hide resolved
userdetails-plugin/grails-app/controllers/au/org/ala/userdetails/RoleBasedInterceptor.groovy
Outdated
Show resolved
Hide resolved
...lugin/grails-app/controllers/au/org/ala/userdetails/UserDetailsWebServicesInterceptor.groovy
Outdated
Show resolved
Hide resolved
} | ||
|
||
user.userRoles = userRoles | ||
user.userRoles = rolesForUser(user.userName).collect { new UserRoleRecord(role: it, user: user) } |
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 does the same thing as adding the true parameter to cognitoUserTypeToUserRecord? Could we remove this? If so, happy to do this in the other branch.
No description provided.