forked from jackbraj/oauth2-server-proxify-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tiguchi/master
Added guest token access and changed request payload handling
- Loading branch information
Showing
8 changed files
with
194 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
composer.lock | ||
/vendor | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* @package manukn/oauth2-server-proxify-laravel | ||
* @author Michele Andreoli <michi.andreoli[at]gmail.com> | ||
* @copyright Copyright (c) Michele Andreoli | ||
* @author Rik Schreurs <rik.schreurs[at]mail.com> | ||
* @copyright Copyright (c) Rik Schreurs | ||
* @license http://mit-license.org/ | ||
* @link https://github.com/manukn/oauth2-server-proxify-laravel | ||
*/ | ||
|
||
namespace Manukn\LaravelProxify\Exceptions; | ||
|
||
use Symfony\Component\HttpKernel\Exception\HttpException; | ||
|
||
/** | ||
* Exception class | ||
*/ | ||
class UnauthorizedException extends HttpException | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $message The internal exception message | ||
* @param \Exception $previous The previous exception | ||
* @param int $code The internal exception code | ||
*/ | ||
public function __construct($message = null, \Exception $previous = null, $code = 0) | ||
{ | ||
if (!$message) { | ||
$message = \Lang::get('api-proxy-laravel::messages.proxy_cookie_expired'); | ||
} | ||
|
||
parent::__construct(403, $message, $previous, array(), $code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.