Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added: Declaring the custom handler in handler.xml

...

Code Block
http\://example.org/shibboleth/authn = foo.shibboleth.idp.config.profile.ProfileHandlerMyNamespaceHandler

handler.xml File

Now you can make use of your LoginHandler via handler.xml.

Declare your name space, add your XML schema file to the documents schemaLocation and add your LoginHandler:

Code Block

<ProfileHandlerGroup xmlns="urn:mace:shibboleth:2.0:idp:profile-handler"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xmlns:example="http://example.org/shibboleth/authn"
                     xsi:schemaLocation="urn:mace:shibboleth:2.0:idp:profile-handler classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
                     http://example.org/shibboleth/authn classpath:/schema/mylogin-profile-handler.xsd">
[..]
	<LoginHandler xsi:type="example:Mylogin">
		<AuthenticationMethod>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</AuthenticationMethod>
	</LoginHandler>