Skip to content

Passport Strategy: ResponseBodyError #725

Closed Answered by panva
robireton asked this question in Q&A
Discussion options

You must be logged in to vote

All you have to do is make currentUrl return the current URL of the request incl. its search parameters.

Don't worry about authorizationCodeGrantParameters and authorizationRequestParams, 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 the redirect_uri token endpoint parameter. And in tls-offloading proxy setups it just depends on express configuration to be in order.

/**
* Return the current request URL.
*

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@panva
Comment options

@panva
Comment options

@robireton
Comment options

@panva
Comment options

Answer selected by robireton
@robireton
Comment options

@panva
Comment options

@robireton
Comment options

@panva
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants