public function OpenIDConnectStateTokenInterface::confirm in OpenID Connect / OAuth client 2.x
Same name and namespace in other branches
- 8 src/OpenIDConnectStateTokenInterface.php \Drupal\openid_connect\OpenIDConnectStateTokenInterface::confirm()
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 method overrides OpenIDConnectStateTokenInterface::confirm()
- OpenIDConnectStateToken::confirm in src/
OpenIDConnectStateToken.php - Confirms anti-forgery state token.
File
- src/
OpenIDConnectStateTokenInterface.php, line 30
Class
- OpenIDConnectStateTokenInterface
- Creates and validates state tokens.
Namespace
Drupal\openid_connectCode
public function confirm(string $state_token) : bool;