-
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
OIDC Login #201
OIDC Login #201
Conversation
Co-authored-by: Alexander Sohn <[email protected]>
Co-authored-by: Alexander Sohn <[email protected]>
Co-authored-by: Alexander Sohn <[email protected]>
Co-authored-by: Alexander Sohn <[email protected]>
Co-authored-by: Alexander Sohn <[email protected]>
Co-authored-by: Alexander Sohn <[email protected]>
Peek.2023-01-05.16-21.webm |
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.
Very nice
@rgwohlbold When deploying OIDC, we need to add OIDC client credentials in the corresponding ENV variables. See here. Can you take care of this? |
I created two OIDC clients and added you as an owner @dasGoogle. I added the config variables to both deployments, we should check after the merge that it is configured correctly. |
Thanks! |
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.
Besides the localization of the button, it looks pretty good to me. Nice work!
<%= button_to(omniauth_authorize_path(resource_name, provider), | ||
class: 'btn btn-primary', id: "#{provider}-signin" , | ||
method: :post, | ||
data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> Logging in...", turbo: "false"}) do %> |
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.
If I understand this correctly, the "logging in" text will be shown on the "Sign in with OIDC" button after clicking it, but I've been never able to see it, even with throttled requests to the OIDC server.
But if it should be visible in some cases, it would be nice if it was localized.
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 simply removed this text now, I think the icon suffices. I honestly also don't know when this should be shown.
It seems that the base URL you configured in |
Sorry, should be fixed now |
* Add first version of OIDC login Co-authored-by: Alexander Sohn <[email protected]> * Fix rubocop issues Co-authored-by: Alexander Sohn <[email protected]> * Revert DB Schema changes Co-authored-by: Alexander Sohn <[email protected]> * Revert DB Schema changes - like, eally Co-authored-by: Alexander Sohn <[email protected]> * Add tests Co-authored-by: Alexander Sohn <[email protected]> * Fix linter issues Co-authored-by: Alexander Sohn <[email protected]> * Remove schema changes and remove CSRF on certain route * Update schema to current version on main * Remove unlocalized text Co-authored-by: Alexander Sohn <[email protected]>
This reverts commit d786d34.
Fixes #59
Description (what might a PO or reviewer want to know?)
PR checklist