DummyStateHandler.php in Auth0 Single Sign On 8.2
Namespace
Auth0\SDK\API\Helpers\StateFile
vendor/auth0/auth0-php/src/API/Helpers/State/DummyStateHandler.phpView source
<?php
namespace Auth0\SDK\API\Helpers\State;
/*
* This file is part of Auth0-PHP package.
*
* (c) Auth0
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
/**
* Dummy implementation of the StateHandler
*
* @deprecated 5.7.0, no replacement provided.
*
* @author Auth0
*/
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;
}
}
Classes
Name | Description |
---|---|
DummyStateHandler Deprecated | Dummy implementation of the StateHandler |