ossn.lib.securitytoken.php File Reference

Go to the source code of this file.

Namespaces

 Informatikon\com
 

Functions

 ossn_generate_action_token ($timestamp)
 
 ossn_build_token_url ($parts)
 
 ossn_add_tokens_to_url ($url)
 
 ossn_validate_actions ()
 
 ossn_action_validate_callback ($callback, $type, $params)
 

Function Documentation

ossn_action_validate_callback (   $callback,
  $type,
  $params 
)

Validate an action token on requested action.

Calls to actions will automatically validate tokens. If token is invalid the action stops and user will be redirected with warning of invalid token.

Parameters
string$callbackName of callback
string$typeType of callback
array$paramsprivate
Returns
void

Definition at line 94 of file ossn.lib.securitytoken.php.

ossn_add_tokens_to_url (   $url)

Add action tokens to url

Parameters
string$urlFull complete url
Returns
string

Definition at line 48 of file ossn.lib.securitytoken.php.

ossn_build_token_url (   $parts)

Build url from parts

Parameters
array$partsUrl parts
Returns
string

Definition at line 31 of file ossn.lib.securitytoken.php.

ossn_generate_action_token (   $timestamp)

Generate token using timestamp

Parameters
array$timestampcurrent timestamp
Returns
string

Definition at line 17 of file ossn.lib.securitytoken.php.

ossn_validate_actions ( )

Validate given tokens

Returns
(bool)

Definition at line 69 of file ossn.lib.securitytoken.php.