protected function Auth0::getState in Auth0 Single Sign On 8.2
Get the state from POST or GET, depending on response_mode
Return value
string|null
See also
https://auth0.com/docs/api-auth/tutorials/authorization-code-grant
1 call to Auth0::getState()
- Auth0::exchange in vendor/
auth0/ auth0-php/ src/ Auth0.php - Exchange authorization code for access, ID, and refresh tokens
File
- vendor/
auth0/ auth0-php/ src/ Auth0.php, line 732
Class
- Auth0
- Class Auth0 Provides access to Auth0 authentication functionality.
Namespace
Auth0\SDKCode
protected function getState() {
$state = null;
if ($this->responseMode === 'query' && isset($_GET['state'])) {
$state = $_GET['state'];
}
else {
if ($this->responseMode === 'form_post' && isset($_POST['state'])) {
$state = $_POST['state'];
}
}
return $state;
}