Closed jonalu closed 4 years ago
Currently the Strategy does not support client assertions making it troublesome to use with Passport.
Pass option extras: CallbackExtras to the StrategyOptions interface like so:
extras: CallbackExtras
StrategyOptions
const strategy = new Strategy({ client, params: { scope: 'openid profile', }, extras: { clientAssertionPayload: { aud: metadata.issuer } } }, (tokenSet: TokenSet, done: (_err: any, _user?: any) => void) => { done(null, tokenSet) });
The function OpenIDConnectStrategy.prototype.authenticate is changed to include the client._extras as the last parameter to client.callback
OpenIDConnectStrategy.prototype.authenticate
client._extras
client.callback
There's a lot that seems to have been done by whatever IDEs automated formatting. Please remove those change and only keep what's new.
@panva Thanks! Do you mind having another look at it?
The problem
Currently the Strategy does not support client assertions making it troublesome to use with Passport.
Proposed solution
Pass option
extras: CallbackExtras
to theStrategyOptions
interface like so:The function
OpenIDConnectStrategy.prototype.authenticate
is changed to include theclient._extras
as the last parameter toclient.callback