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

I think there is something wrong in the user auth #134

Open
ninggeningge opened this issue Jul 13, 2016 · 0 comments
Open

I think there is something wrong in the user auth #134

ninggeningge opened this issue Jul 13, 2016 · 0 comments

Comments

@ninggeningge
Copy link

ninggeningge commented Jul 13, 2016

I tried to use user_id to generate an api_key, however, i can use this key to access my api without login my app. so i try to read your middleware part code, i find
ApiGuardAuth::authenticate($this->apiKey); on Chrisbjr\ApiGuard\Http\Middleware\ApiGuard.php line 99, this code just return false or the user have been authenticated, but there isn't a judgement on whether two user_ids are equal.

or i just misunderstand your code, and misuse your code. i really appreciate it if you can solve my problem.
Thank you

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