-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/implement backend authentication #68
Merged
Zheng-Zhi-Qiang
merged 20 commits into
main
from
feature/implement-backend-authentication
Mar 8, 2024
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7618acd
feat: created authenticator
Zheng-Zhi-Qiang e37a5e8
feat: added middleware to authenticate user
Zheng-Zhi-Qiang 8431734
Merge branch 'main' into feature/implement-backend-authentication
Zheng-Zhi-Qiang 493fd96
refactor: updated handler error according to PR#68
Zheng-Zhi-Qiang ada7e13
refactor: removed session store implementation for authentication
Zheng-Zhi-Qiang e0b956f
Merge branch 'main' into feature/implement-backend-authentication
Zheng-Zhi-Qiang 946605b
refactor: moved auth middleware to middleware.go under server package…
Zheng-Zhi-Qiang c5100ed
fix: added auth middleware to server instantiation
Zheng-Zhi-Qiang 87d36b7
fix: added string parsing to get access token from bearer token
Zheng-Zhi-Qiang 9adb4ab
fix: added missing logging to auth middleware
Zheng-Zhi-Qiang 7f087b3
refactor: changed to auth functions for backend api instead of applic…
Zheng-Zhi-Qiang f31b28e
fix: changed healthcheck message sent to string instead of bytes as e…
Zheng-Zhi-Qiang e490f66
refactor: applied respective authentication function to routes
Zheng-Zhi-Qiang 2afbff7
refactor: removed env_file setting from docker compose and specified …
Zheng-Zhi-Qiang a56bd7f
refactor: removed uneccessary logging from auth functions
Zheng-Zhi-Qiang 59bd685
refactor: reduced authorization functions to only one to differentiat…
Zheng-Zhi-Qiang bd45275
fix: restricted pipeline resources to admins and unrestricted healthc…
Zheng-Zhi-Qiang cdac4e5
fix: merge conflict in compose.yaml
Zheng-Zhi-Qiang 4ec3b0f
fix: resolved merged conflicts
Zheng-Zhi-Qiang c396393
refactor: moved permission check function from helper to middleware
Zheng-Zhi-Qiang 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 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 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 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 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 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 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 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 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.
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.
wait why you move this here? why didn't you keep it with
middleware.go
?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 function is just a helper function to check if a permission exists, to me not really a middleware exactly