-
Notifications
You must be signed in to change notification settings - Fork 101
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(rest): Added creating user from REST and basic authentication #1832
feat(rest): Added creating user from REST and basic authentication #1832
Conversation
Three things that I observed during testing are:
|
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.
kindly incorporate review comments.
backend/src/src-users/src/main/java/org/eclipse/sw360/users/db/UserDatabaseHandler.java
Outdated
Show resolved
Hide resolved
.../org/eclipse/sw360/rest/resourceserver/security/basic/Sw360GrantedAuthoritiesCalculator.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/eclipse/sw360/rest/resourceserver/security/basic/Sw360GrantedAuthority.java
Outdated
Show resolved
Hide resolved
...java/org/eclipse/sw360/rest/resourceserver/security/basic/Sw360CustomUserDetailsService.java
Outdated
Show resolved
Hide resolved
...java/org/eclipse/sw360/rest/resourceserver/security/basic/Sw360CustomUserDetailsService.java
Outdated
Show resolved
Hide resolved
.../org/eclipse/sw360/rest/resourceserver/security/basic/Sw360GrantedAuthoritiesCalculator.java
Outdated
Show resolved
Hide resolved
...main/java/org/eclipse/sw360/rest/resourceserver/security/basic/Sw360UserDetailsProvider.java
Outdated
Show resolved
Hide resolved
...resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/Sw360ResourceServer.java
Show resolved
Hide resolved
...source-server/src/main/java/org/eclipse/sw360/rest/resourceserver/user/Sw360UserService.java
Outdated
Show resolved
Hide resolved
...resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/user/UserController.java
Outdated
Show resolved
Hide resolved
62a00de
to
d62b0f1
Compare
7f4fd43
to
c50c17a
Compare
@rudra-superrr & @akapti Thank you for review and test. I have incorporated the changes. Kindly have a look once. |
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.
Kindly incorporate the review comments.
backend/src/src-users/src/main/java/org/eclipse/sw360/users/UserHandler.java
Outdated
Show resolved
Hide resolved
backend/src/src-users/src/main/java/org/eclipse/sw360/users/db/UserDatabaseHandler.java
Outdated
Show resolved
Hide resolved
...java/org/eclipse/sw360/rest/resourceserver/security/basic/Sw360CustomUserDetailsService.java
Outdated
Show resolved
Hide resolved
c50c17a
to
c45d1fb
Compare
@rudra-superrr & @akapti Please have a look again |
c45d1fb
to
a71e420
Compare
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.
Code looks good to me.
@rudra-superrr Can you please re-test it once?
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.
Good to go
Hi @smrutis1, |
a71e420
to
b484659
Compare
Done |
Testing was successful. |
@smrutis1, need to separate the PR from current implementation with a switch, else anyone in production servers can use this endpoint to login to backend |
Signed-off-by: Smruti Prakash Sahoo <[email protected]>
b484659
to
2e0732a
Compare
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.
Changes looks good
Signed-off-by: Smruti Prakash Sahoo [email protected]
Note: The above endpoints are required for building new UI and initial step to get rid of Liferay.
Issue:
Suggest Reviewer
How To Test?
/api/users
endpoint for creating user.Checklist
Must: