Skip to content

feat(auth): Allow to hide username / password login form when OAuth is enabled #518

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

Merged
merged 2 commits into from
Jul 7, 2024
Merged

feat(auth): Allow to hide username / password login form when OAuth is enabled #518

merged 2 commits into from
Jul 7, 2024

Conversation

marvinruder
Copy link
Contributor

@marvinruder marvinruder commented Jul 3, 2024

  • Hide “Sign in” password form
  • Disable services related to password authentication
  • Change styling of OAuth provider buttons
  • Open OAuth page in same tab
  • Fix consistent usage of informal language in de-DE locale

Fixes #489

Signed-off-by: Marvin A. Ruder [email protected]

… enabled

* Hide “Sign in” password form
* Disable routes related to password authentication
* Change styling of OAuth provider buttons
* Open OAuth page in same tab
* Fix consistent usage of informal language in de-DE locale

Fixes #489

Signed-off-by: Marvin A. Ruder <[email protected]>
@marvinruder marvinruder changed the title 🚀 Feature: Allow to hide username / password login form when OAuth is enabled feat(auth): Allow to hide username / password login form when OAuth is enabled Jul 3, 2024
@marvinruder
Copy link
Contributor Author

I changed the OAuth button layout a bit to have them take a bit more room when those buttons are the only thing shown on the card. It looks nice even with the username / password form present, so I kept it there as well.

New and larger buttons on the “Sign in” page:

image

With OAuth providers only:

image

I also noticed that clicking on an OAuth button opens its authentication page in a new tab, and after authentication Pingvin Share is opened in the same new tab while the first tab remains unused and still shows the “Sign in” page. That behavior seemed unintentional, and I changed the buttons’ behavior to open the OAuth provider page in the same tab.

Copy link
Owner

@stonith404 stonith404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I've just added a small change that fixes the order of the new config variable.

That's a great improvement and addition. Thank you!

@stonith404 stonith404 merged commit e1a68f7 into stonith404:main Jul 7, 2024
1 check passed
@marvinruder marvinruder deleted the marvinruder/issue489 branch July 14, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Hide username / password login field when setup Microsoft SSO
2 participants