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

Auto approve based on whether the user has approved the app before #77

Closed
ajaybc opened this issue Jul 8, 2013 · 1 comment
Closed

Comments

@ajaybc
Copy link

ajaybc commented Jul 8, 2013

I have seen the auto_approve parameter in the tutorial. But as far as I know it is retrieved from a specific field in the database.

What I want to know is whether there is any built in function to check whether the same user has approved the app with the same scope before and if not show the authorize page.

Do I have to write my own function to test that ?

@alexbilbie
Copy link
Contributor

You'll have to write your own method - but remember to check that if the user has approved the client before then they only approved the scopes that are requested in the current request - i.e. if the user originally approved app XYZ for scopes FOO and BAR, then if the app is now request FOO, BAR and FOOBAR the user should be asked for permission to access all the scopes again.

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

2 participants