You are here

class DummyStateHandler in Auth0 Single Sign On 8.2

Dummy implementation of the StateHandler

@author Auth0

Hierarchy

Expanded class hierarchy of DummyStateHandler

Deprecated

5.7.0, no replacement provided.

2 files declare their use of DummyStateHandler
Auth0.php in vendor/auth0/auth0-php/src/Auth0.php
DummyStateHandlerTest.php in vendor/auth0/auth0-php/tests/API/Helpers/State/DummyStateHandlerTest.php

File

vendor/auth0/auth0-php/src/API/Helpers/State/DummyStateHandler.php, line 21

Namespace

Auth0\SDK\API\Helpers\State
View source
class DummyStateHandler implements StateHandler {

  /**
   * Generate state value to be used for the state param value during authorization.
   *
   * @return string|null
   */
  public function issue() {
    return null;
  }

  /**
   * Store state value to be used for the state param value during authorization.
   *
   * @param string $state
   *
   * @return string|void
   */
  public function store($state) {
  }

  /**
   * Perform validation of the returned state with the previously generated state.
   *
   * @param string $state
   *
   * @return boolean result
   *
   * @throws \Exception
   */
  public function validate($state) {
    return true;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DummyStateHandler::issue public function Generate state value to be used for the state param value during authorization. Overrides StateHandler::issue
DummyStateHandler::store public function Store state value to be used for the state param value during authorization. Overrides StateHandler::store
DummyStateHandler::validate public function Perform validation of the returned state with the previously generated state. Overrides StateHandler::validate