netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.86k stars 285 forks source link

Disabled Email-based Login #317

Closed hrueger closed 1 year ago

hrueger commented 2 years ago

- Do you want to request a feature or report a bug? Feature

- What is the current behavior? Is there an option to disable email-based login? I'd like to only use SAML via GoTrue and I only want to show that button in the identity widget.

- What is the expected behavior? Maybe a ENV Variable can be added.

- Please mention your Go version, and operating system version. Windows 10 with Docker (Go Version from the Dockerfile)

hrueger commented 2 years ago

Interestingly, setting GOTRUE_EXTERNAL_EMAIL_DISABLED: "true" results in /settings containing email: false but the identity widget does not hide the fields. Is that a bug of the identity widget?

And I would also like to hide the "Sign Up" tab. I can't set GOTRUE_DISABLE_SIGNUP: "true" because it seems like this is required for SAML auth to work (the user is still created in the DB)

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 7 days if no further activity occurs. Thanks!

github-actions[bot] commented 1 year ago

This issue was closed because it had no activity for over 1 year.