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

AuthorizationError: The provided request must include a 'scope' input parameter. #1

Open
NuzumPat opened this issue Oct 27, 2016 · 1 comment

Comments

@NuzumPat
Copy link

NuzumPat commented Oct 27, 2016

I tried your example and got the following error after hitting the "login with onedrive" button:
AuthorizationError: The provided request must include a 'scope' input parameter.
MicrosoftOneDriveStrategy.OAuth2Strategy.authenticate (c:\Users\xxxxxx\Documents\VS Code\passport-onedrive-master\examples\login\node_modules\passport-onedrive\node_modules\passport-oauth2\lib\strategy.js:136:25)

@drikusroor
Copy link

You need to specify a scope in the options parameter:

app.get(
  "/auth/onedrive",
  passport.authenticate("onedrive", { scope: "Files.ReadWrite.All" })
);

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