All,
I have a situation where I need to stop/break the SAML SSO (SP init) based on some condition.. I use below code snippet on mapping rule, to do that. It errors on mapping rule as expected, but still SAML flow continues and a invalid SAML response is sent to SP. I want to stop the flow and stay on IdP side.. Is this possible.
if(condition){
Continue and Do something
}else{
stsuu.clearAttributeList();
IDMappingExtUtils.throwSTSException("Condition check Is not performed, Breaking the SSO. Please try again.");
}
If I use above code snippet, I see this on trace log..
[2/27/23 12:37:28:471 CST] 000014cf id=00000000 com.tivoli.am.fim.saml.types.ValidationFailureType E logError FBTSML225E Token exchange failed.
It errors as expected but it resumes the SAML flow. I want to stop and go to the error page on IdP. It would be appreciable for a response, if anyone has gone through this usecase.
Thanks, Chandra.
------------------------------
Chandra Guin
------------------------------