Commerce rules define content paths that require user authentication. When Helix Mobile Server receives a request URL, it compares the URL's virtual paths to the protected paths to determine if authentication is required.
For more information: For information about defining authentication commerce rules using Helix Administrator, see "Commerce".
The following example demonstrates how to specify commerce rules for Helix Mobile Server:
<List Name="CommerceRules">
<List Name="SecureUserContent">
<Var ProtectedVirtualPath="/secure"/>
<Var Realm="ContentRealm"/>
<Var EvaluatePermissions="1"/>
<Var DatabaseID="Content_RN5"/>
<Var AllowDuplicateIDs="0"/>
</List>
</List>
|
parent: |
|
|
registry: |
config.CommerceRules.protected_path |
|
function: |
Defines a commerce rule that protected a content path. |
|
variables: |
AllowDuplicateIDs, DatabaseID , EvaluatePermissions, ProtectedVirtualPath, Realm, UseGUIDValidation |
|
list: |
|
|
syntax: |
<Var AllowDuplicateIDs="Boolean"/> |
|
value: |
0—user cannot log on at another location |
|
default: |
1 |
|
example: |
<Var AllowDuplicateIDs="0"/> |
Determines whether someone who's already logged on can successfully log on at another location. When set to 0, a user gets the error message "Your account is locked" if they attempt to log on using the same account or player ID.
|
list: |
|
|
syntax: |
<Var DatabaseID="string"/> |
|
value: |
database identifier |
|
default: |
1 |
|
example: |
<Var DatabaseID="Content_RN5"/> |
Points to the database identifiers in the Databases list.
|
list: |
|
|
syntax: |
<Var EvaluatePermissions="Boolean"/> |
|
value: |
0—allow access to all content |
|
default: |
1 |
|
example: |
<Var EvaluatePermissions="1"/> |
Instructs Helix Mobile Server whether or not to look at the permissions list or to allow access to all content.
|
list: |
|
|
syntax: |
<Var ProtectedVirtualPath="string"/> |
|
value: |
virtual path |
|
default: |
none |
|
example: |
<Var ProtectedVirtualPath="/secure"/> |
Name of the mount path, virtual directory, or actual directory used in URLs. It defines the path to the content that you want Helix Mobile Server to authenticate.
|
list: |
|
|
syntax: |
<Var Realm="realm"/> |
|
value: |
virtual path |
|
default: |
none |
|
example: |
<Var Realm="CUV4X-USER.ContentRealm"/> |
This points to the realm names in AuthenticationRealms list.
Tip: Don't use this variable if UseGUIDValidation is in use.
|
list: |
|
|
syntax: |
<Var UseGUIDValidation="Boolean"/> |
|
value: |
0—do not use the GUID for authentication |
|
default: |
0 |
|
example: |
<Var UseGUIDValidation="1"/> |
Sets up player authentication. Gathers the client's ID but not the user's name. Don't use this variable if Realm is in use.
For more information: See also "Player Authentication Configuration".
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com
CommerceRules