07_authentication/src/sites/authentication.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
  -  Copyright 2001-2006 Geert Bevin <gbevin[remove] at uwyn dot com>
  -  Distributed under the terms of either:
  -  * the common development and distribution license (CDDL), v1.0; or
  -  * the GNU Lesser General Public License, v2.1 or later
  -  $Id: authentication.xml 3308 2006-06-15 18:54:14Z gbevin $
  -->

<!DOCTYPE site SYSTEM "/dtd/site.dtd">

<site>
    <globalcookie name="authid"/>

    <globalexit name="admin" destid="Admin"/>
    
    <arrival destid="Home"/>

    <!-- embeddable login box -->
    <element id="AuthBox" file="authentication/box.xml"/>
    
    <element id="Logout" file="rife/logout/passthrough/memory.xml">
        <flowlink srcexit="logged_out" snapback="true"/>
    </element>
    
    <element id="LoginBox" file="credentials.xml" inherits="AuthBox">
        <flowlink srcexit="logout" destid="Logout"/>
    </element>

    <!-- visitor section -->
    <element id="Home" extends="rife/template/print.xml" url="/home">
        <property name="name">home</property>
        <exit name="more"/>
        
        <flowlink srcexit="more" destid="More"/>
    </element>
    
    <element id="More" extends="rife/template/print.xml" url="/more">
        <property name="name">more</property>
        <exit name="home"/>
        
        <flowlink srcexit="home" destid="Home"/>
    </element>

    <!-- administration section -->
    <element id="AuthAdmin" file="authentication/administration.xml"/>
    
    <element id="Admin" extends="rife/template/print.xml" url="/admin" inherits="AuthAdmin">
        <property name="name">administration</property>
        <exit name="home"/>
        
        <flowlink srcexit="home" destid="Home"/>
    </element>
</site>