...
A complete example is attached to this page for your reference. The rest of this page will cover individual beans used in the file.
Velocity Bean
The MCB makes use of Apache Velocity in order to render the login pages and the selection page for authentication methods. This allows the template files to live outside of the Shibboleth WAR and be updated independently of it. The default velocity.properties file also is set to poll for changed pages every 2 seconds. You can adjust that to suit your business needs.
Code Block | ||
---|---|---|
| ||
<bean id="mcb.SSOVelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" depends-on="shibboleth.LogbackLogging">
<property name="overrideLogging" value="false" />
<property name="velocityProperties">
<props>
<prop key="runtime.log.logsystem.class">
edu.internet2.middleware.shibboleth.common.util.Slf4JLogChute
</prop>
<prop key="resource.loader">file</prop>
<prop key="file.resource.loader.class">
org.apache.velocity.runtime.resource.loader.FileResourceLoader
</prop>
<prop key="file.resource.loader.path">/opt/shibboleth-idp/conf</prop>
<prop key="file.resource.loader.cache">false</prop>
</props>
</property>
</bean> |
The only value here that needs to be modified is the file.resource.loader.path value. It must point to the directory where the velocity.properties file lives.
Authentication Bean
Authentication beans represent the submodules used to authenticate users. They must implement the edu.internet2.middleware.assurance.mcb.authn.provider.MCBSubmmodule Interface. The interface itself is defined as:
...