XmlAuthenticator

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
Line 3: Line 3:
 
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.
 
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.
  
== <init> tags ==
+
== <init> directives ==
  
 
{|
 
{|
!tag||description
+
!directive||description
 
|-
 
|-
 
||logout-on-session-timeout||If true, principals should be logged out when a session times out||true
 
||logout-on-session-timeout||If true, principals should be logged out when a session times out||true

Revision as of 20:24, 21 February 2006


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.

<init> directives

directive description
logout-on-session-timeout If true, principals should be logged out when a session times out true
password-digest Password digest type of form: MD5-base64 MD5-base64
password-digest-algorithm Sets the password digest algorithm MD5
password-digest-realm Sets the realm to use for the digest resin
path Path to an XML file containing the configuration
principal-cache-size Size of the principal cache 4096
user Inline user configuration in the form "name:password:roles"

Example

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