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

Rerequest special permissions #125

Open
stefanoschrs opened this issue Jul 8, 2015 · 7 comments
Open

Rerequest special permissions #125

stefanoschrs opened this issue Jul 8, 2015 · 7 comments

Comments

@stefanoschrs
Copy link

Hello is there a way to pause the login process until the user has given the special permissions?
I have this code that asks the user every time he logs in for the permissions but I want it to not let him continue until he accepts them

    router.get('/auth/facebook',          passport.authenticate('facebook', { 
      authType: 'rerequest', 
      scope: [
        'email', 
        'read_insights'
      ] 
    }));
@vrangasayee
Copy link

AuthType: rerequest doesn't seem to work

@mrbatista
Copy link

See this and specifically in the section "Re-asking for Declined Permissions"

This is because once someone has declined a permission, the Login Dialog will not re-ask them for it unless you explicitly tell the dialog you're re-asking for a declined permission.

You do this by adding the auth_type: rerequest flag to your FB.login() call:

@swapnil002
Copy link

swapnil002 commented Aug 24, 2016

app.get('/auth/facebook',
passport.authenticate('facebook', { authType: 'rerequest', scope: ['user_friends', 'manage_pages'] }));

rerequest doesnt seem to be working.

Any other solution around this? I can manually redirect user to grant permission page again. But if there is a shortcut, then please let me know.

@vallettea
Copy link

rerequest is not working.
How do you redirect user to grant permission page again ?

@wzup
Copy link

wzup commented Jun 14, 2017

2017-06 rerequest is not working

@WeiChienHsu
Copy link
Contributor

{authType: 'reauthenticate'} Works for me 👍

@TrevorBurnham
Copy link

@WeiChienHsu reauthenticate is different from rerequest:

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

8 participants