-
I’m trying to migrate from version 5 to 6 and use the included Passport strategy. Starting with the provided passport example code, I get a I notice that one of the parameters to Can the included Passport strategy work if this is the case? |
Beta Was this translation helpful? Give feedback.
Answered by
panva
Nov 20, 2024
Replies: 1 comment 9 replies
-
What's the [cause] of your ResponseBodyError? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All you have to do is make
currentUrl
return the current URL of the request incl. its search parameters.Don't worry about
authorizationCodeGrantParameters
andauthorizationRequestParams
, these are used to provide additional / extra parameter to the respective protocol messages.To explain, the
currentUrl
prototype method on the Strategy is used to determine the current URL the strategy is executed on, ergo the URL that is used as theredirect_uri
token endpoint parameter. And in tls-offloading proxy setups it just depends on express configuration to be in order.openid-client/src/passport.ts
Lines 378 to 389 in 7405570