|Table of Contents|
By returning a PostAuthnHandlerFlowStatus
This method of returning the response can have multiple flow statuses:
|SUCCESS_COMPLETED||This status can be returned if the post-authentication process is complete. The next post handler is then invoked as the current one has been completed.|
This status indicates that the post-authentication process is incomplete (e.g., a redirection to an external page). The response can be simply redirected and you can expect it to come back to your post-authentication handler once the response is submitted to WSO2 IS again.
If a response from an external page is submitted to the post-authentication handler which is in progress, the following needs to be included in the request along with the input data that is recieved from the external page:
As seen in the sample implementation, the disclaimer page is redirected and it stores the “consentPoppedUp” state so that next time the post handler continues upon the response, it can look for the disclaimer response and proceed.