You are here

function openid_connect_redirect_access in OpenID Connect / OAuth client 7

Access callback: Redirect page.

1 string reference to 'openid_connect_redirect_access'
openid_connect_menu in ./openid_connect.module
Implements hook_menu().

File

./openid_connect.module, line 204
A pluggable client implementation for the OpenID Connect protocol.

Code

function openid_connect_redirect_access() {

  // Confirm anti-forgery state token. This round-trip verification helps to
  // ensure that the user, not a malicious script, is making the request.
  return !empty($_GET['state']) && openid_connect_confirm_state_token($_GET['state']);
}