passport-oauth icon indicating copy to clipboard operation
passport-oauth copied to clipboard

Adding customHeaders doesn't do anything

Open AskYous opened this issue 7 years ago • 0 comments

Adding custom headers does nothing to the generated authorization URL:

passport.use("office365", new OAuth2Strategy({
    "authorizationURL": "https://login.microsoftonline.com/common/oauth2/authorize",
    "tokenURL": "https://login.microsoftonline.com/common/oauth2/token",
    "clientID": "b6c8879b-5c72-43d3-b82d-3d8a7252f3b1",
    ...
    "callbackURL": "http://localhost:3000/auth/provider/callback",
    "customHeaders": {
        "resource": "https://login.microsoftonline.com/common"
    }
});

AskYous avatar May 23 '17 19:05 AskYous