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.

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.


prompt=login

When we are using prompt=login with authentication request then the IS server prompt the end user for re authentication. If it does not have pre-configured consent then it will ask for consent too.

prompt=consent

This is kind of forcefully sending the request to consent page. Though there is a pre-configured consent if the user request for prompt=consent in authentication request then IS server will prompt the consent page.






Comments

Popular posts from this blog

Applying CORS Filter to wso2 Identity Server

JWKS endpoint of wso2 IS

DCR VS DCRM with WSO2 Identity server