mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-29 18:53:25 +05:30
Fix #169
This commit is contained in:
1 parent
130d42c85e
commit
522c7478c7
7 files changed
+109
-68
No files matched your search
@@ -23,6 +23,12 @@ class OAuthException extends \Exception
|
||||
*/
|
||||
public $httpStatusCode = 400;
|
||||
|
||||
/**
|
||||
* If true the server should redirect back to the client
|
||||
* @var boolean
|
||||
*/
|
||||
public $serverShouldRedirect = false;
|
||||
|
||||
/**
|
||||
* The exception type
|
||||
*/
|
||||
@@ -36,6 +42,15 @@ class OAuthException extends \Exception
|
||||
parent::__construct($msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Should the server redirect back to the client?
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldRedirect()
|
||||
{
|
||||
return $this->serverShouldRedirect;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all headers that have to be send with the error response
|
||||
* @return array Array with header values
|
||||
|
||||
Reference in new issue
Block a user