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

Mutliple 'user' models for authentication #282

Closed
ruddfawcett opened this Issue Aug 29, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@ruddfawcett
Copy link

ruddfawcett commented Aug 29, 2016

Is it possible to have two models, both of which are not called User to login (sort of like two roles but split into models)?

If that is not possible, is it possible to have a single model not named User to login? Say my user model is named Student or something else? I can't seem to find any documentation on this.

@cvalarida

This comment has been minimized.

Copy link

cvalarida commented Sep 14, 2016

I don't think it's possible to have two separate "User" models to log in (but I'm not an authority on this).

What you're looking for on the second bit is the userEndpoint option when you configure authentication (check it out in the docs).

You'll want to configure that endpoint in your services, of course.

If that doesn't make enough sense, I can give you examples (I just had to figure this all out myself).

@ekryski

This comment has been minimized.

Copy link
Member

ekryski commented Oct 1, 2016

@ruddfawcett a fix is coming in 0.8 for this so that you can authenticate with any/multiple entities

@ruddfawcett

This comment has been minimized.

Copy link
Author

ruddfawcett commented Oct 1, 2016

Great, thanks @ekryski!

@alzab

This comment has been minimized.

Copy link

alzab commented Sep 16, 2017

@ekryski Was this actually implemented? Documentation seems to be scarce on this point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.