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.

This authentication scheme relays on the referenced credential store component to assert user credentials. If the credential store binds successfully against the corresponding resource using the supplied credentials, authentication is considered successful, otherwise authentication is considered unsuccessful.

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 econding 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

Single Basic Authentication Definition

Make sure that there is one single component definition named "basic-authentication".

josso-gateway-auth.xml
<?xml version="1.0" encoding="UTF-8" ?>
<s:beans xmlns:s="http://www.springframework.org/schema/beans"
       xmlns:bind-authscheme="urn:org:josso:bind: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:bind:authscheme http://www.josso.org/schema/josso-bind-authscheme.xsd">

    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- BIND Authentication Scheme (normally LDAP) -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Requires a be a bindalble credential store -->
    <!-- the name attribute is important and must not be changed -->
    <bind-authscheme:bind-auth-scheme
            id="josso-bind-authentication"
            name="basic-authentication"
            hashAlgorithm="MD5"
            hashEncoding="HEX"
            ignorePasswordCase="false"
            ignoreUserCase="false">


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

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

    </bind-authscheme:bind-auth-scheme>
</s:beans>