Reputation: 4118
I believe the 3.1.2.1. Authentication Request section of the specification says that we cannot, but I find it so unbelievable that I thought I would double check by asking here.
Is there a way to redirect my users to any URL of my domain name after they successfully logged in via the OIDC provider ?
My use case would be :
As I can't know in advance the URL my user will be visiting on step 3, I would like her to be redirected there, whatever that URL might be.
Is this doable ? Do I understand correctly that the spec says it is not ? If the spec does say no, do you know any workaround that would allow this user experience ?
Upvotes: 6
Views: 6292
Reputation: 16775
You can use the state
parameter to achieve that without any deviation from the specification.
The state
parameter is associated to the page/action to perform on client side.
Upvotes: 7