Skip to content

We need to be able to specify scope #10

@AskYous

Description

@AskYous

We need to be able to request a specific scope. For example, if I want access to the users emails, calendar events, and profile, I have no way to specify it. If there was also some documentation on what information the token gives us access to, that would be much more helpful. Auth2 on passport.js' site has documentation on this (click here and scroll down to 'Scope').

An example of requesting a specific scope is like this:

passport.use(new OAuth2Strategy({
  "authorizationURL": "https://login.microsoftonline.com/common/oauth2/authorize",
   ...
  "resource": "https://login.microsoftonline.com/common",
  "scope": ["email", "offline_access", "profile"] // the scope
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions