...
Code Block | ||
---|---|---|
| ||
<!-- This bean represents an authentication submodule --> <bean id="mcb.usernamepassword" class="edu.internet2.middleware.assurance.mcb.authn.provider.JAASLoginSubmodule"> <constructor-arg index="0" value="/opt/shibboleth-idp/conf/login.config" /> <!-- The JAAS configuration file --> <constructor-arg index="1" value="MCBUserPassAuth" /> <!-- The JAAS configuration name --> <constructor-arg index="2" value="jaaslogin.vm" /> <!-- The login page to display --> <constructor-arg index="3" value="false" /> <!-- Set to true if using JSP login page (parameter defaults to false if not supplied) --> </bean> |
The bean id value must be unique for each submodule you define. However, it is possible to use the same submodule code to define multiple beans (meaning you could have two or more JAASLoginSubmodules in your file). For the standard JAAS submodule, three constructor arguments are needed, a fourth is optional. The first is the JAAS configuration file itself, the second is the JAAS configuration name (from the configuration file in parameter 1) that will be used. The third is the name of the velocity template to use for the login page. If the fourth parameter is supplied and has a value of true, then the login page template for parameter three is assumed to be a JSP page and is processed as such.
Configuration Bean
The configuration bean represents the data that is in the MCB multi-context-broker.xml configuration file. By loading it as a bean, the configuration information is available to all parts of the MCB at runtime.
...