-
Notifications
You must be signed in to change notification settings - Fork 31
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
Spring Security 5 OAuth2 #1339
Spring Security 5 OAuth2 #1339
Conversation
… instead of adding in URL params.
…ion that use db operations.
… of just encoding it directly in the variable.
I manually tested happy paths and error paths with the uploader, and then ran the integration suite on them and everything is working as intended. |
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 want to comment here that @deepsidhu85 confirmed that this update works with irida-galaxy-importer |
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.
This is looking good. Just a few things below. Just have a few things left to manually test as well
src/main/java/ca/corefacility/bioinformatics/irida/jackson2/mixin/RoleMixin.java
Show resolved
Hide resolved
src/main/java/ca/corefacility/bioinformatics/irida/oauth2/IridaOAuth2AuthorizationService.java
Show resolved
Hide resolved
src/main/java/ca/corefacility/bioinformatics/irida/oauth2/IridaRegisteredClientsRepository.java
Show resolved
Hide resolved
...facility/bioinformatics/irida/oauth2/OAuth2ResourceOwnerPasswordAuthenticationConverter.java
Show resolved
Hide resolved
...efacility/bioinformatics/irida/oauth2/OAuth2ResourceOwnerPasswordAuthenticationProvider.java
Show resolved
Hide resolved
...a/ca/corefacility/bioinformatics/irida/repositories/relational/auditing/UserRevListener.java
Outdated
Show resolved
Hide resolved
...ain/java/ca/corefacility/bioinformatics/irida/ria/web/oauth/OltuAuthorizationController.java
Show resolved
Hide resolved
...acility/bioinformatics/irida/web/controller/api/RESTOAuthAuthorizationConsentController.java
Show resolved
Hide resolved
Update the documentation for the |
… upgrading OAuth2 backend.
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.
Thanks so much for this Eric. It looks great. I did have a few comments/questions for you.
I also have yet to run this and test it out that way, so I may have additional feedback later.
...facility/bioinformatics/irida/database/changesets/unreleased/oauth2-authorization-tables.xml
Show resolved
Hide resolved
src/main/resources/ca/corefacility/bioinformatics/irida/sql/oauth-token.sql
Show resolved
Hide resolved
...corefacility/bioinformatics/irida/database/changesets/unreleased/refactor-client-details.xml
Show resolved
Hide resolved
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.
This all looks great to me. I tested out the uploader and syncing between IRIDA instances and it all works.
Thanks so much for addressing my previous comments.
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.
Tested it out and working as expected. Thanks!
Description of changes
Replaced deprecated OAuth implementation using spring-security-oauth2 with spring security 5 OAuth2 resource and authorization server.
Related issue
Link to the GitHub issue this pull request addresses using the
#issuenum
format. If it completes an issue, useFixes #issuenum
to automatically close the issue.Checklist
Things for the developer to confirm they've done before the PR should be accepted: