OpenIDConnect prompt parameter in Wso2 Identity Server
From this blog post we will see how Wso2 IS supports for prompt parameter to be used in OpenIDConnect authentication request by using the playground sample.
We can send the authentication request with prompt parameter to Identity server by using playground sample as follows.
If there is not already authenticated end user you will get an error from Identity Server as below.
Though you have an authenticated user but not pre-configured consent (if you have not approve always or set skip consent from file) then also you will get an error as access-denied.
If you authenticate the user in the same session and set the consent as approve the user will get the authorization code. And if you authenticate the user in the same session and if you have set the consent as approved always in a previous session then also you will get the authorization code as below.
The Prompt parameter
According to the OpenIDConnect specification, by using prompt parameter we can force the authorization server to do specific tasks. Wso2 Identity Server 5.1.0 (which will be released in few weeks) supports three values to be used with prompt parameter.prompt=none
If an end user is not already authenticated or if there is not pre-configured consent(though there is an already authenticated user) the Identity Server will return an error page and if there is an already authenticated user and pre-configured consent the Identity Server will provide the authorization code.We can send the authentication request with prompt parameter to Identity server by using playground sample as follows.
If there is not already authenticated end user you will get an error from Identity Server as below.
Though you have an authenticated user but not pre-configured consent (if you have not approve always or set skip consent from file) then also you will get an error as access-denied.
If you authenticate the user in the same session and set the consent as approve the user will get the authorization code. And if you authenticate the user in the same session and if you have set the consent as approved always in a previous session then also you will get the authorization code as below.
Comments
Post a Comment