Implemented RFC7636. Fixes #574

This commit is contained in:
Alex Bilbie
2016-05-06 15:23:16 +01:00
parent 4a4f4fe2d7
commit 8e8aed1a50
4 changed files with 611 additions and 8 deletions

View File

@@ -64,6 +64,18 @@ class AuthorizationRequest
*/
protected $state;
/**
* The code challenge (if provided)
* @var string
*/
protected $codeChallenge;
/**
* The code challenge method (if provided)
* @var string
*/
protected $codeChallengeMethod;
/**
* @return string
*/
@@ -175,4 +187,36 @@ class AuthorizationRequest
{
$this->state = $state;
}
/**
* @return string
*/
public function getCodeChallenge()
{
return $this->codeChallenge;
}
/**
* @param string $codeChallenge
*/
public function setCodeChallenge($codeChallenge)
{
$this->codeChallenge = $codeChallenge;
}
/**
* @return string
*/
public function getCodeChallengeMethod()
{
return $this->codeChallengeMethod;
}
/**
* @param string $codeChallengeMethod
*/
public function setCodeChallengeMethod($codeChallengeMethod)
{
$this->codeChallengeMethod = $codeChallengeMethod;
}
}