Skip to content
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

[Feature] Supporting domain hints #286

Open
1 task done
domdomegg opened this issue Dec 12, 2023 · 0 comments
Open
1 task done

[Feature] Supporting domain hints #286

domdomegg opened this issue Dec 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@domdomegg
Copy link

Is there an existing feature request for this?

  • I have searched the existing issues

Is your feature related to a problem? Please describe.

In some situations we might know what the user's domain should be, but not their actual email. For example, we might know they should be logging in to example.com.

It'd be nice to automatically redirect these users to the right provider.

Describe the solution you'd like

The ability to either:

  1. Set the login_hint to a domain, e.g. login_hint=example.com
  2. Set the hd (like Google), e.g. hd=example.com
  3. Set a domain_hint (like Azure), e.g. domain_hint=example.com

Then if it matches a configuration it should take the equivalent action as to if [email protected] was given, although not forwarding on the placeholder@ part.

Describe alternatives you've considered

One workaround is to use login_hint and set it to something like [email protected]. However, this user part is then forwarded onto the provider which doesn't work well with some as the users then need to delete the filled in user part e.g. Google (or forwarding has to be disabled, which also adds friction).

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants