passport-oauth
passport-oauth copied to clipboard
Adding customHeaders doesn't do anything
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"
}
});