Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Using bearer strategy passReqToCallback = true does not work #258

Merged
merged 2 commits into from
Nov 21, 2016

Conversation

jes5e
Copy link
Contributor

@jes5e jes5e commented Nov 21, 2016

Fixes Issue #254 - passReqToCallback does not work with bearer strategy

When 'passReqToCallback' is set to true, the callback passed in to a new strategy should get called with the three param option (req, user, done). It does not. Instead the two param option is always called (user, done).

In the bearerstrategy jwtVerify function, self.passReqToCallback was being used instead of self._options.passReqToCallback. This cause the callback passed in to a new strategy to get called with the two param option even when "passReqToCallback" is set to true.

lovemaths and others added 2 commits November 14, 2016 16:27
…being used instead of self._options.passReqToCallback. This cause the callback passed in to a new strategy to get called with the two param option even when "passReqToCallback" is set to true.
@msftclas
Copy link

Hi @jes5e, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@lovemaths lovemaths merged commit 84af329 into AzureAD:dev Nov 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants