Fediz ConfigurationPage edited by Oliver WulffChanges (5)
Full ContentFediz Plugin configurationThis page describes the Fediz configuration file referenced by the security interceptor of the Servlet Container (eg. authenticator in Tomcat/Jetty). The Fediz configuration information is used to publish the federation Metadata document which is described here ExampleThe following example shows the minimum configuration for Fediz.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FedizConfig>
<contextConfig name="/fedizhelloworld">
<audienceUris>
<audienceItem>https://localhost:8443/fedizhelloworld</audienceItem>
</audienceUris>
<certificateStores>
<trustManager>
<keyStore file="conf/stsstore.jks" password="stsspass" type="JKS" />
</trustManager>
</certificateStores>
<trustedIssuers>
<issuer certificateValidation="PeerTrust" />
</trustedIssuers>
<protocol xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="federationProtocolType" version="1.2">
<issuer>https://localhost:9443/fediz-idp/</issuer>
</protocol>
</contextConfig>
</FedizConfig>
These configuration elements allows for configuring a CallbackHandler which gets a Callback object where the appropriate value must be set. The CallbackHandler implementation has access to the HttpServletRequest. The XML attribute type must be set to Class. For more information see Fediz Extensions. Advanced exampleThe following example defines the required claims and configures a custom callback handler to define some configuration values at runtime.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FedizConfig>
<contextConfig name="/fedizhelloworld">
<audienceUris>
<audienceItem>https://localhost:8443/fedizhelloworld</audienceItem>
</audienceUris>
<certificateStores>
<keyStore file="conf/stsstore.jks" password="stsspass" type="JKS" />
</certificateStores>
<maximumClockSkew>10</maximumClockSkew>
<trustedIssuers>
<issuer certificateValidation="PeerTrust" />
</trustedIssuers>
<signingKey keyPassword="tompass">
<keyStore file="tomcatKeystore.jks" password="tompass" type="JKS" />
</signingKey>
<protocol xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="federationProtocolType" version="1.2">
<issuer>https://localhost:9443/fediz-idp/</issuer>
<roleDelimiter>,</roleDelimiter>
<roleURI>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role</roleURI>
<claimTypesRequested>
<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role" optional="true" />
</claimTypesRequested>
<authenticationType type="String" value="http://docs.oasis-open.org/wsfed/authorization/200706/authntypes/smartcard" />
<homeRealm type="Class" value="example.HomeRealmCallbackHandler" />
<tokenValidators>
<validator>org.apache.cxf.fediz.core.CustomValidator</validator>
</tokenValidators>
</protocol>
</contextConfig>
</FedizConfig>
Stop watching space
|
Change email notification preferences
View Online
|
View Changes
|
- [CONF] Apache CXF > Fediz Configuratio... Oliver Wulff (Confluence)
- [CONF] Apache CXF > Fediz Configu... Colm O hEigeartaigh (Confluence)
