-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement token based authentication and authorization #15
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bd9aa77
Register automapper in Program.cs
osm-Jatin 3728219
Modify the UpdateRole method to return Role object
osm-Jatin 0b8705e
Refactor the ModelValidationBadRequest class to generate model valida…
osm-Jatin 331b280
Add BaseResponse in Role controller
osm-Jatin 731a3c6
Modify the service and repo layers to return the UserDto
osm-Jatin 2e75997
Add BaseResponse in User controller
osm-Jatin a3dac78
Remove the duplicate using directive
osm-Jatin b3fb0c3
Update the PaginationMetadata
osm-Jatin 43c6a73
Add pagination in /GET All APIs of User and Role controllers
osm-Jatin 292728d
Add packages for JWT authentication and swagger annotations
osm-Jatin a85e8e0
Add JWT Configuration in appsettings.json
osm-Jatin 88b9f10
Modify Program.cs to configure authentication and allow swagger to pa…
osm-Jatin e0c09ee
Create a token service to generate JWT tokens
osm-Jatin e12fca5
Modify UserService to Generate JWT Tokens
osm-Jatin 8ce7858
Create DTO for Login Request
osm-Jatin f999e63
Modify UserController to create a login endpoint and secure APIs usin…
osm-Jatin c578b10
Add validation attributes to LoginRequestDto
osm-Jatin b92bfab
Improve error handling for missing JWT configuration
osm-Jatin df1fda1
Add placeholders for JWT configuration
osm-Jatin 54c78e7
Add checks for JWT config values.
osm-Jatin a1c6ae3
Align JWT package versions for compatibility with JwtBearer
osm-Jatin 1c0287c
Resolve package downgrade by aligning System.IdentityModel.Tokens.Jwt…
osm-Jatin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.