How to send custom IDP errors

kotesh201 koteshwarv at gmail.com
Sun Jul 28 23:21:11 EDT 2013


Hi,
I am using external login handler for authentication in shibboleth. In
external login handler (.jsp file) , I am getting the Saml2LoginContext and
trying to set the AuthenticationException like below.

Saml2LoginContext samlLoginCtx = null;
samlLoginCtx = (Saml2LoginContext)
req.getAttribute(ServerConsts.SAML_LOGIN_CONTEXT_KEY);
samlLoginCtx.setAuthenticationFailure(new AuthenticationException("Send
sample idp custom validation exception message to Service Provider"));
request.setAttribute(ServerConsts.SAML_LOGIN_CONTEXT_KEY,samlLoginCtx);
AuthenticationEngine.returnToAuthenticationEngine( request, response );

After I set the custom idp validation exception, setting the login context
back into the request and sending to the AuthenticationEngine. With above
code change, IDP is not processing anything. I dont see anything in the logs
after above code executed. It just hung.

Is it possible to send the IDP custom validation errors ? If yes, anything
that I am missing ? Can you pls suggest me the with best possible solutions

Thanks,
Kotesh



--
View this message in context: http://shibboleth.1660669.n2.nabble.com/How-to-send-custom-IDP-errors-tp7588857.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.


More information about the users mailing list