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

grant_type client_credentials: req.authInfo.user is filled with first User #51

Closed
PuKoren opened this issue Mar 31, 2015 · 2 comments
Closed

Comments

@PuKoren
Copy link

PuKoren commented Mar 31, 2015

When I log into loopback with oauth2 and using client_credentials type, the req.authInfo.user is always filled with the first inserted user in DB.
Since the first user is admin, that were causing all my apps logging in to be admin (I was using register resolver for ACL based on the user email).

Using loopback 2.14 and loopback-component-oauth2 1.0

@superkhau
Copy link
Contributor

Can you provide a link to a test project on Github? See https://github.com/strongloop/loopback/wiki/Issues#bug-report

@jannyHou
Copy link
Contributor

I am closing it since it's too long ago. Please feel free to reopen it if you still run into it. Thanks for understanding.

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

3 participants