shibboleth-dev - Re: Custom IdP Extension - example schema does not work
Subject: Shibboleth Developers
List archive
- From: Jan Peter Stotz <>
- To:
- Subject: Re: Custom IdP Extension - example schema does not work
- Date: Fri, 12 Mar 2010 15:26:38 +0100
Hi Chad,
thanks for the example. Looks like my understanding of the XML Schema
and how to use it in handlers.xml was better than I thought because I
came to the same result - just with one small difference: on my system
it doesn't work :(
I get the exception:
java.lang.IllegalArgumentException: Cannot locate BeanDefinitionParser
for element: {urn:mace:shibboleth:2.0:idp:profile-handler}LoginHandler
while Shibboleth's ProfileHandlerGroupBeanDefinitionParser.parse(..)
method is executed (that is the relevant class of the stack trace).
I simply don't understand why that happens. While debugging using
break-points I verified that my the relevant NameSpaceHandler of
Shibboleth and my own are correctly loaded, the custom schema file is
loaded, too.
Ciao Jan
Chad La Joie wrote:
> A namespace declaration looks like this:
>
> xmlns:PREFIX="some:urn:or:url"
>
> Then you use the declaration like this:
>
> PREFIX:MyCustomType
>
> So, assume a created namespace of "http://fraunhofer.de/idp/handler" and
> assume the custom type that you defined was "SmartCard" like you had.
>
> You declare your namespace, usually at the top of the file, but really
> any time before you use it is fine. So, you'd do this:
>
> <ProfileHandlerGroup
> xmlns="urn:mace:shibboleth:2.0:idp:profile-handler"
> xmlns:custom="http://fraunhofer.de/idp/handler"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:mace:shibboleth:2.0:idp:profile-handler
>
> classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
> http://fraunhofer.de/idp/handler
> classpath:/schema/fraunhofer-custom-handler.xsd">
>
>
> And then you'd use it as such:
>
> <LoginHandler xsi:type="custom:SmartCard">
> <AuthenticationMethod>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</AuthenticationMethod>
> </LoginHandler>
- Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/11/2010
- RE: [Shib-Dev] Custom IdP Extension - example schema does not work, Scott Cantor, 03/11/2010
- Re: [Shib-Dev] Custom IdP Extension - example schema does not work, Jim Fox, 03/11/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- RE: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Jeff.Krug, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Jim Fox, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
Archive powered by MHonArc 2.6.16.