mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-28 07:50:23 +05:30
Make determineAccessToken() public in order to check if an access token was sent before checking its validity.
This commit is contained in:
parent
98be9ab252
commit
e5a48c929b
@ -242,7 +242,7 @@ class Resource
|
||||
* @throws Exception\MissingAccessTokenException Thrown if there is no access token presented
|
||||
* @return string
|
||||
*/
|
||||
protected function determineAccessToken($headersOnly = false)
|
||||
public function determineAccessToken($headersOnly = false)
|
||||
{
|
||||
if ($header = $this->getRequest()->header('Authorization')) {
|
||||
// Check for special case, because cURL sometimes does an
|
||||
|
Loading…
Reference in New Issue
Block a user