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

how to auth 2 different models with same alias ? #357

Open
MathieuDerelle opened this issue Mar 13, 2020 · 0 comments
Open

how to auth 2 different models with same alias ? #357

MathieuDerelle opened this issue Mar 13, 2020 · 0 comments
Labels
support request This issue is a request for support using Simple Token Authentication.

Comments

@MathieuDerelle
Copy link

  # acts_as_token_authentication_handler_for SpecialUser, as: :user, fallback: :none
  # acts_as_token_authentication_handler_for AltUser, as: :user, fallback: :none

when a request comes in with X-User-Email & X-User-Token (with credentials of SpecialUser), one DB query is done (select in AltUser table)

and nobody is authenticated...

current_special_user & current_alt_user are both nil

@gonzalo-bulnes gonzalo-bulnes added the support request This issue is a request for support using Simple Token Authentication. label Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request This issue is a request for support using Simple Token Authentication.
Projects
None yet
Development

No branches or pull requests

2 participants