-
Notifications
You must be signed in to change notification settings - Fork 349
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
Quality/change saml endpoint name #370
base: development
Are you sure you want to change the base?
Quality/change saml endpoint name #370
Conversation
…ete-pid fix:fix the manual delete servers.pid file after restart container
…ms#364) refactor ternary operator which creates student_name to ensure nicknames with a value of "" are not rendered
…-unit-load-times Perf/fix project and unit load times
Currently the endpoint that handles SAML authentication is named /auth/jwt. This endpoint still exists, and there is a new endpoint called /auth/saml2 which will eventually replace the former.
Moved copied /auth/jwt and /auth/saml2 logic into a seperate file with function
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 @sneaky-patriki, congrats on first PR - a quick small change
Hi @sneaky-patriki, Thanks for the PR. Can you make a small change? Move the AuthSaml to a "helper" - put it in app/helpers folder. Rename it and the file to AuthSamlHelper. Then you can include this in the authentication API like the authentication helper. |
Just thinking @macite should we move into a helpers/auth dir? I think all the auth handlers could be brought out into their own file - AAF/SAML/database etc? |
Yes that would be a good idea. Then that would clear up the API a lot... |
@sneaky-patriki sorry as per my comment above can we get this into |
Change authsamlhelper class to module, mark as helper for and prefix correctly Remove import authsamlhelper since helpers are imported by default
1460564
to
8aa1203
Compare
Description
Added a new endpoint /auth/saml2 for SAML authentication
This uses the same logic as /auth/jwt (which should be SAML and will be decommissioned)
Pulled out logic into a seperate function
Fixes # (issue)
Type of change
Refactoring
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Ran unit test suite locally
Checklist:
If you have any questions, please contact @macite or @jakerenzella.