-
Notifications
You must be signed in to change notification settings - Fork 127
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
Allow selection of secondary OIDC provider #1824
Conversation
3e0b828
to
34c1f5a
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.
I think I found a couple minor lines of code that were accidentally left in, but everything else looks great!
{ | ||
$authenticated = false; | ||
$user = null; | ||
$authenticateResult = false; | ||
$email = null; | ||
|
||
$this->logger->err(sprintf('%s', json_encode(sfConfig::getAll()))); |
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.
Was this a debug message?
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.
Yes it is! 😆 🤦
Thanks for catching this! 👍
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.
Removed - see latest commit
} catch (Exception $e) { | ||
$this->setProviderId(); |
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.
Is this repeated function call inside the catch a typo?
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.
I was trying to ensure that setProviderId() would be run even if there was an exception generated in signOut().
I am wondering now if I could just move getSessionProviderID() and setProviderId() to before the try{}. I will have a closer look.
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.
Updated and tested. See latest commit.
6b0d6fa
to
0d11646
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.
Looks good! Thanks @sbreker
0d11646
to
f813789
Compare
Add the ability to define a secondary OIDC provider for authentication and select it using a query param on the request URL. E.g. Use the 'sample_provider' provider by modifying the AtoM URL before pressing "Log in with SSO": http://127.0.0.1:63001/index.php?secondary=sample_provider
f813789
to
52d7f01
Compare
Add the ability to define a secondary OIDC provider for authentication and select it using a query param on the request URL.
E.g. Use the 'sample_provider' provider by modifying the AtoM URL before pressing "Log in with SSO":
http://127.0.0.1:63001/index.php?secondary=sample_provider