Lines Matching defs:state
82 if (!isset($parameters['state'])) {
83 $parameters['state'] = $this->generateAuthorizationState();
85 $this->storeAuthorizationState($parameters['state']);
100 public function requestAccessToken($code, $state = null)
102 if (null !== $state) {
103 $this->validateAuthorizationState($state);
235 * Check if the given service need to generate a unique state token to build the authorization url.
245 * Validates the authorization state against a given one.
247 * @param string $state
249 protected function validateAuthorizationState($state): void
251 if ($this->retrieveAuthorizationState() !== $state) {
257 * Generates a random string to be used as state.
267 * Retrieves the authorization state for the current service.
277 * Stores a given authorization state into the storage.
279 * @param string $state
281 protected function storeAuthorizationState($state): void
283 $this->storage->storeAuthorizationState($this->service(), $state);