public static function OpenIDConnectStateTokenInterface::create in OpenID Connect / OAuth client 8
Creates a state token and stores it in the session for later validation.
Return value
string A state token that later can be validated to prevent request forgery.
Deprecated
in openid_connect:8.x-1.0-rc2 and is removed from openid_connect:8.x-2.0. Instead of the static OpenIDConnectStateToken::create, use the non-static \Drupal::service('openid_connect.state_token')->create() instead.
See also
https://www.drupal.org/project/openid_connect/issues/3055847
1 method overrides OpenIDConnectStateTokenInterface::create()
- OpenIDConnectStateToken::create in src/
OpenIDConnectStateToken.php - Creates a state token and stores it in the session for later validation.
File
- src/
OpenIDConnectStateTokenInterface.php, line 23
Class
- OpenIDConnectStateTokenInterface
- Creates and validates state tokens.
Namespace
Drupal\openid_connectCode
public static function create();