Allows the returnURL and realm properties to be a string (old behavior) or a function (new behavior).
Previously you could only use a string, such as:
returnURL: 'http://localhost:3000/auth/openid/return'
With this change, you can also use a function that takes the request as a parameter, such as:
returnURL: req => 'http://localhost:3000/auth/openid/return' + querystring.stringify(req.query)
This provides a simple way to preserve some request information through the login process, without the need for sessions/cookies/etc.
Allows the
returnURL
andrealm
properties to be a string (old behavior) or a function (new behavior).Previously you could only use a string, such as:
returnURL: 'http://localhost:3000/auth/openid/return'
With this change, you can also use a function that takes the request as a parameter, such as:
returnURL: req => 'http://localhost:3000/auth/openid/return' + querystring.stringify(req.query)
This provides a simple way to preserve some request information through the login process, without the need for sessions/cookies/etc.