App

Version 2 (nimetu, 12/19/2013 08:09 am)

1 1 vl
h1. App
2 1 vl
3 2 nimetu
Authenticate user coming from AppZone.
4 1 vl
5 1 vl
h2. PHP Interface
6 1 vl
7 2 nimetu
h3. @ryzom_app_authenticate($user)@
8 1 vl
9 2 nimetu
This functions parses and verifies AppZone @$user@ and @$checksum@ url parameters.
10 1 vl
11 2 nimetu
PHP session should be started before calling this function.
12 2 nimetu
User info is kept in @$_SESSION['app.user']@ variable.
13 1 vl
14 2 nimetu
h3. Constants that should be defined:
15 1 vl
16 2 nimetu
* *RYAPI_AUTH_KEY* secret key from AppZone
17 2 nimetu
  if empty, then user info is not verified.
18 2 nimetu
 
19 2 nimetu
* *RYAPI_APP_URL*  app url from AppZone
20 2 nimetu
  if empty, then automatic best guess url is tried
21 2 nimetu
  if false, then app url is not verified
22 1 vl
23 2 nimetu
* *RYAPI_APP_MAXAGE* max age in seconds for AppZone url to be valid
24 2 nimetu
  if 0, then timestamp is not verified