Conversation
added 14 commits
December 25, 2020 15:12
Added TestController class which would help in a further development of the app.
In order to send notification emails faster.
Implemented signup and sendMail controllers.
Overrode the standart implementation of spring boot security.
Implemented AuthService with saving new users to the database. Added MailService and MailContentBuilder which are responsible for sending the activation mail to the user after registration.
Owner
Author
|
Registration is ready |
added 8 commits
December 26, 2020 13:31
Login method returns AuthenticationResponse which is provided by login method of AuthService.
.his class represents data of client login request.
This class represents data which server sends to the client after login.
LoadUserByUsername method was implemented using email as username and only with one 'USER' role. Moreover getAuthorities method was implemented which provides us with a singleton list of given role.
Authenticates user and then sends a JWT token with email as response.
This class is responsible for the generation of a new token.
Owner
Author
|
Sends JWT token as a response for user login request |
added 6 commits
December 26, 2020 19:07
Changed test api permissions. Added JWT Authentication Filter
Overrode doFilterInternal method so unauthorized users couldn't reach api without bearer token. Implemented getJwtFromRequest method which return bearer token from the client request.
Implemented validateToken method responsible for a token validation. This method uses getPublicKey method which provides public key. Moreover getUsernameFromJwt method was implemented in order to be able to extract username from the token.
Added roles and operations to the database. Added Builder annotation to all the model classes. Added createDateTime and UpdateDateTime fields to some models. Implement dependencies from the second side. Introduced small code refactoring.
added 4 commits
December 27, 2020 03:57
Introduced UserDetailsImpl class to the loadUserByUsername method and removed getAuthorities method.
I did it because during authentication Role was looping with User model.
Add pre authorization for all the apis accordingly to its names.
Owner
Author
|
Authorization is ready |
added 9 commits
December 27, 2020 13:39
Owner
Author
|
Introduce some small changes. Fix some bugs. Remove deprecated code. |
added logout
finished refresh token implementation
Added swagger dependencies. Increased version of a project. Added description.
… swagger-documentation
Swagger documentation
optimized imports removed unnecessary unique flags from simulation entity
added @crossorigin(maxAge = 3600) annotation to SimulationController
added rest requests for simulations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request will be merged as soon as the whole authentication part would be finished.