mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Merge branch 'hotfix/0.2.1' into develop
This commit is contained in:
commit
248b09641d
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lncd/Oauth2",
|
"name": "lncd/Oauth2",
|
||||||
"description": "OAuth 2.0 Framework",
|
"description": "OAuth 2.0 Framework",
|
||||||
"version": "0.2",
|
"version": "0.2.1",
|
||||||
"homepage": "https://github.com/lncd/OAuth2",
|
"homepage": "https://github.com/lncd/OAuth2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -114,6 +114,9 @@ class Server
|
|||||||
{
|
{
|
||||||
$accessToken = null;
|
$accessToken = null;
|
||||||
|
|
||||||
|
|
||||||
|
$_SERVER['REQUEST_METHOD'] = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null;
|
||||||
|
|
||||||
// Try and get the access token via an access_token or oauth_token parameter
|
// Try and get the access token via an access_token or oauth_token parameter
|
||||||
switch ($_SERVER['REQUEST_METHOD'])
|
switch ($_SERVER['REQUEST_METHOD'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user