Authenticate user coming from AppZone.

PHP Interface


This functions parses and verifies AppZone $user and $checksum url parameters.

PHP session should be started before calling this function.
User info is kept in $_SESSION['app.user'] variable.

Constants that should be defined:

  • RYAPI_AUTH_KEY secret key from AppZone
    if empty, then user info is not verified.
  • RYAPI_APP_URL app url from AppZone
    if empty, then automatic best guess url is tried
    if false, then app url is not verified
  • RYAPI_APP_MAXAGE max age in seconds for AppZone url to be valid
    if 0, then timestamp is not verified