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

one user can use other user token to access api. How to make it user specific. #131

Open
gurinder-sason opened this issue Sep 13, 2017 · 0 comments

Comments

@gurinder-sason
Copy link

i have just implemented this, i am new to yii. my problem is after installation and configuration the library. i am not able to understand few things.

  1. on adding behaviour, authentication is added to every controller action. how it is called for every action automatically. is behaviour works like constuctor?
  2. when i call any api with access_token it again automatically validating the token but down know how it is working?
  3. access token generated by one user, can be used by other user. so how i can make sure token generated by one user can be used by only him not other user. To do this i think i have to add some code
    where it is validating the authentic user. but know the location.

So if anyone can help me in this regard is most welcome.

Thanks.

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