You are here

function tokenauth_is_token_authenticated in Token authentication 6.2

Determine if the current session was granted by Token Authentication.

Return value

bool

4 calls to tokenauth_is_token_authenticated()
tokenauth_context_init in modules/tokenauth_context/tokenauth_context.module
Implementation of hook_init().
tokenauth_exit in ./tokenauth.module
Implementation of hook_exit(). Deliberately insure that this session will not be saved by sess_write(). Safety.
tokenauth_init in ./tokenauth.module
Implementation of hook_init().
tokenauth_url_outbound_alter in ./tokenauth.module
Implementation of hook_url_outbound_alter(). Appends the current user's token to any path run through url() that also passes tokenauth's allowed pages filter.

File

./tokenauth.inc, line 146
Provides tokenauth API for Token Authentication module.

Code

function tokenauth_is_token_authenticated() {
  return isset($_SESSION['tokenauth_auth']);
}