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

Can we override the way all-auth selects Provider #285

Open
veris-neerajdhiman opened this issue Nov 28, 2016 · 0 comments
Open

Can we override the way all-auth selects Provider #285

veris-neerajdhiman opened this issue Nov 28, 2016 · 0 comments

Comments

@veris-neerajdhiman
Copy link

This is a wearied requirement but somehow I have this

  • I wants users to enables same provider with different credentials in their apps.
  • Like if user wants to add goggle provider in their he wants to register two apps with google provider, then he adds two social apps Google_1, Google_2.
  • On signIn form user sees google sign in button , but when he clicks on that button , he will receive an error saying MultipleObjectsReturned , which is true according to current implementation.

One way of solving this with current functions to

  • add both providers google_1 and google_2 in different site domains.
  • Second possible way (if you want both providers n same domain same ) will be to somehow you know which providers will be return on signin click.

I was thinking to change the url /accounts/<some_key>/google/login/?process=login and based on <some_key> in url I can select the provider

So If there is any way to update Provider selecting method please let me know.

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

No branches or pull requests

1 participant