Skip to content

Can I add an arbitrary redirect URL as a parameter? #340

Answered by timnolte
corypina asked this question in Q&A
Discussion options

You must be logged in to vote

@corypina there are 2 shortcodes you can use, one to generate a login button and one to generate an authentication URL that both allow specifying a redirect URL to be used after authentication. The redirect URL is stored as a part of the state stored as a transient. Since redirect URLs can't be passed to the IDP and then sent back to the OIDC "client", and cookies aren't stored reliably when caching services are used, the redirect needs to be managed in a reliable way on the WordPress site.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timnolte
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