the "originalUrl" is not used as the default "returnTo" url, the baseUrl is #479
Closed
6 tasks done
Labels
question
Further information is requested
Checklist
Description
The baseUrl is used as the returnTo value as a default, when it should be the "originalUrl" the request came from.
The error is here. It should use returnTo if defined or originalUrl:
express-openid-connect/middleware/auth.js
Line 42 in 1d33b74
This is a regression of this fix:
#95
I believe the originalUrl is the "referrer" header in the Get login request.
Reproduction
Try logging into an application. The state should include a returnTo value of the baseUrl, and not the original url the request was from.
Additional context
No response
express-openid-connect version
any v2 version
Express version
any
Node.js version
any
The text was updated successfully, but these errors were encountered: