Login   Register  
PHP Classes
elePHPant
Icontem

File: doc/examples/webservice/resources/api.profiles.ini

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kristo Vaher  >  Wave Framework  >  doc/examples/webservice/resources/api.profiles.ini  >  Download  
File: doc/examples/webservice/resources/api.profiles.ini
Role: Auxiliary data
Content type: text/plain
Description: Example Profiles
Class: Wave Framework
MVC framework for building Web sites and APIs
Author: By
Last change: Better installation instructions and updated version numbers for custom project files.
Date: 2 years ago
Size: 1,653 bytes
 

Contents

Class file image Download
; Web Service Tutorial <http://www.waveframework.com>
; Tutorial API Profiles
; 
; This file stores an array of API profile names and their secret keys and other configuration 
; options. When API is called with an API profile that is from this list and is not set as 
; public in framework Configuration, then this API profile has to be authenticated with either 
; a secret key or a session token. Every API profile is a group in this file, it's name written 
; in brackets, followed by various settings for the API profile.
; 
; Settings for both public and non-public profiles:
; * disabled - A true or false setting whether this profile is disabled
; * ip - Either aterisk (*) or comma separated list of allowed IP addresses
; * commands - Comma-separated list of commands allowed by this API, can be '*' to allow all commands
; 
; Settings that are valid for non-public profiles only:
; * secret-key - Secret key of the API profile, should be a 32 character string for best security.
; * token-timeout - Time (in seconds) how long a generated token is valid if left unused. Default is infinite.
; * timestamp-timeout - This sets for how many seconds from the moment request was made this request is considered valid.
; * hash-validation - If this is set to 0 (it is set to 1 by default), then hash-based validations are not used at all.
; 
; @package    API
; @author     Kristo Vaher <kristo@waher.net>
; @copyright  Copyright (c) 2012, Kristo Vaher
; @license    Unrestricted
; @tutorial   /doc/pages/api_security.htm
; @since      1.0.0
; @version    1.0.0

[public]
disabled=0
ip="*"
commands="movies-add,movies-delete,movies-get,movies-all"