Changeset 2491

Show
Ignore:
Timestamp:
10/03/08 13:26:59 (3 months ago)
Author:
dsanders
Message:

Added anonymous reads settings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/otis/config/otis-config.server.xml

    r2481 r2491  
    583583                                        <Setting Name="Noun8" Type="xsd:string">Entity/*/Attribute/*</Setting> 
    584584                                </Setting> 
     585                                 
     586                                <!-- Enable anonymous reads --> 
     587                                <Setting Name="AnonymousRead" Type="htf:map"> 
     588                                        <Setting Name="AnonymousReadAuthMethod" Type="xsd:string">urn:bandit-project:otis:authmethod:1.0:anonymous</Setting> 
     589                                         
     590                                        <!-- 
     591                                         
     592                                        Below illustrates how to setup a username/password authentication method for anonymous reads 
     593                                         
     594                                        <Setting Name="AnonymousReadAuthMethod" Type="xsd:string">urn:bandit-project:otis:authmethod:1.0:usernamePassword</Setting> 
     595                                        <Setting Name="AnonymousReadAuthMaterial" Type="htf:map"> 
     596                                                <Setting Name="AuthMaterialID" Type="xsd:string">urn:bandit-project:otis:authmaterial:1.0:usernamePassword</Setting> 
     597                                                <Setting Name="ChildMaterials" Type="htf:list"> 
     598                                                        <Setting Type="htf:map"> 
     599                                                                <Setting Name="AuthMaterialID" Type="xsd:string">urn:bandit-project:otis:authmaterial:1.0:username</Setting> 
     600                                                                <Setting Name="AuthMaterialValue" Type="xsd:string">username</Setting> 
     601                                                        </Setting> 
     602                                                        <Setting Type="htf:map"> 
     603                                                                <Setting Name="AuthMaterialID" Type="xsd:string">urn:bandit-project:otis:authmaterial:1.0:password</Setting> 
     604                                                                <Setting Name="AuthMaterialValue" Type="xsd:string">password</Setting> 
     605                                                        </Setting> 
     606                                                </Setting> 
     607                                        </Setting> 
     608                                         
     609                                        --> 
     610                                </Setting> 
    585611                                <Setting Name="POST_TemplateFile" Type="xsd:string">POST_EntityResponse.fmt</Setting> 
     612                                <Setting Name="GET_ContextTemplateFile" Type="xsd:string">GET_ContextResponse.fmt</Setting> 
    586613                                <Setting Name="GET_EntityTemplateFile" Type="xsd:string">GET_EntityResponse.fmt</Setting> 
    587614                                <Setting Name="GET_AttributeTemplateFile" Type="xsd:string">GET_AttributeResponse.fmt</Setting>