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