Added by Sebastian Gonzalez Oyuela, last edited by Gianluca Brigandi on Jan 20, 2009  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Authenticates users based on username and password credential set.

Component Properties

Properties
hashAlgorithm The message digest algorithm to be used when hashing passwords. If not specified, no hashing is used. This must be an algorithm supported by the java.security.MessageDigest class on your platform, for example MD5 or SHA1
hashEncoding The encoding used to store hashed passwords. Supported values are HEX, BASE64.
ignorePasswordCase If true, password case will be ignored when validating credentials.
This property is ignored if a hashAlgorithm was specified. Default to false.
ignoreUserCase If true, username case will be ignored when validating credentials. Default to false.
saltLenght Only used when CRYPT is configured, default value is 2.
credential-store The credential store configured for this authenticator. Check specific stores for specific configuraiton options
credential-store-key-adapter The credential store key adapter configured for this authenticator. Check specific stores for specific configuraiton options

Sample Component Definition

josso-gateway-auth.xml
<?xml version="1.0" encoding="UTF-8" ?>
<s:beans xmlns:s="http://www.springframework.org/schema/beans"
       xmlns:basic-authscheme="urn:org:josso:basic:authscheme"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        urn:org:josso:basic:authscheme http://www.josso.org/schema/josso-basic-authscheme.xsd">

    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Basic Authentication Scheme                -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <basic-authscheme:basic-auth-scheme
            id="josso-basic-authentication"
            hashAlgorithm="MD5"
            hashEncoding="HEX"
            ignorePasswordCase="false"
            ignoreUserCase="false">

        <basic-authscheme:credentialStore>
            <s:ref bean="josso-identity-store"/>
        </basic-authscheme:credentialStore>

        <basic-authscheme:credentialStoreKeyAdapter>
            <s:ref bean="josso-simple-key-adapter"/>
        </basic-authscheme:credentialStoreKeyAdapter>

    </basic-authscheme:basic-auth-scheme>

</s:beans>