Authenticate user coming from AppZone.
This functions parses and verifies AppZone
$checksum url parameters.
PHP session should be started before calling this function.
User info is kept in
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