XmlAuthenticator

From CauchoWiki

Jump to: navigation, search


The XmlAuthenticator is a simple authentication scheme where an XML file or a configuration file specifies the users directly. XmlAuthenticator is useful when you have a small number of known users.

[edit] <init> directives

directivedescription
logout-on-session-timeoutIf true, principals should be logged out when a session times outtrue
password-digestPassword digest type of form: MD5-base64MD5-base64
password-digest-algorithmSets the password digest algorithmMD5
password-digest-realmSets the realm to use for the digestresin
pathPath to an XML file containing the configuration
principal-cache-sizeSize of the principal cache4096
userInline user configuration in the form "name:password:roles"

[edit] Example

[edit] resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">
  <authenticator>
    <type>com.caucho.server.security.XmlAuthenticator</type>
    <init>
      <password-digest>none</password-digest>
      <user>Harry Potter:quidditch:user</user>
    </init>
  </authenticator>
  ...
</web-app>
Personal tools