function openid_connect_confirm_state_token in OpenID Connect / OAuth client 7
Confirms anti-forgery state token.
Parameters
string $state_token: The state token that is used for validation.
Return value
bool Whether the state token matches the previously created one that is stored in the session.
1 call to openid_connect_confirm_state_token()
- openid_connect_redirect_access in ./
openid_connect.module - Access callback: Redirect page.
File
- ./
openid_connect.module, line 197 - A pluggable client implementation for the OpenID Connect protocol.
Code
function openid_connect_confirm_state_token($state_token) {
return isset($_SESSION['openid_connect_state']) && $state_token == $_SESSION['openid_connect_state'];
}