Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] IdP plugins / Exception and Error handling

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] IdP plugins / Exception and Error handling


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [Shib-Dev] IdP plugins / Exception and Error handling
  • Date: Wed, 17 Nov 2010 07:34:36 -0500
  • Organization: Itumi, LLC

It depends on where you're talking about. I think all of the public plugin points describe what types of exceptions to throw or where to put the exception (in the case of the Login Handler).

That said, and knowing the conversation that spawned this question, I'd again point out that the interception of redirects between the various parts of the IdP are *not* part of the public interface. If however you are doing that and you choose to use the default IdP error page (you could use your own if you wanted) then what you want to do is the second choice in your list.

On 11/17/10 7:30 AM, Halm Reusser wrote:
Hi,

what is the correct way to transfer exceptions/errors back to the IdP,
which happened in the plugin.


void doPlugin(HttpServletRequest request, ...) {

try {
myBusiness();
} catch (MyException e) {
// Variant 1:
throw new Exception(e);
// Variant 2:
request.setAttribute(AbstractErrorHandler.ERROR_KEY,e);
// Variant 3:
???
}
}

Thanks,
-Halm


--
Chad La Joie
http://itumi.biz
trusted identities, delivered



Archive powered by MHonArc 2.6.16.

Top of Page