mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
composer update bshaffer/oauth2-server-php
This commit is contained in:
12
composer.lock
generated
12
composer.lock
generated
@@ -133,16 +133,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bshaffer/oauth2-server-php",
|
"name": "bshaffer/oauth2-server-php",
|
||||||
"version": "v1.12.0",
|
"version": "v1.12.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bshaffer/oauth2-server-php.git",
|
"url": "https://github.com/bshaffer/oauth2-server-php.git",
|
||||||
"reference": "60254fc7fbb08ce56164faae9e075068adf914ef"
|
"reference": "2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/bshaffer/oauth2-server-php/zipball/60254fc7fbb08ce56164faae9e075068adf914ef",
|
"url": "https://api.github.com/repos/bshaffer/oauth2-server-php/zipball/2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985",
|
||||||
"reference": "60254fc7fbb08ce56164faae9e075068adf914ef",
|
"reference": "2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -190,9 +190,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/bshaffer/oauth2-server-php/issues",
|
"issues": "https://github.com/bshaffer/oauth2-server-php/issues",
|
||||||
"source": "https://github.com/bshaffer/oauth2-server-php/tree/v1.12.0"
|
"source": "https://github.com/bshaffer/oauth2-server-php/tree/v1.12.1"
|
||||||
},
|
},
|
||||||
"time": "2022-04-19T17:09:11+00:00"
|
"time": "2022-05-31T16:12:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "commerceguys/intl",
|
"name": "commerceguys/intl",
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class Bearer implements TokenTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$contentType = $request->server('CONTENT_TYPE');
|
$contentType = $request->server('CONTENT_TYPE');
|
||||||
if (false !== $pos = strpos($contentType, ';')) {
|
if (false !== $pos = strpos((string) $contentType, ';')) {
|
||||||
$contentType = substr($contentType, 0, $pos);
|
$contentType = substr($contentType, 0, $pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,17 @@ class BearerTest extends TestCase
|
|||||||
$this->assertEquals($response->getParameter('error_description'), 'The content type for POST requests must be "application/x-www-form-urlencoded"');
|
$this->assertEquals($response->getParameter('error_description'), 'The content type for POST requests must be "application/x-www-form-urlencoded"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testMissingContentTypeExpectsToBeCorrectContent()
|
||||||
|
{
|
||||||
|
$bearer = new Bearer();
|
||||||
|
$request = TestRequest::createPost(array(
|
||||||
|
'access_token' => 'ThisIsMyAccessToken'
|
||||||
|
));
|
||||||
|
|
||||||
|
$param = $bearer->getAccessTokenParameter($request, $response = new Response());
|
||||||
|
$this->assertEquals($param, 'ThisIsMyAccessToken');
|
||||||
|
}
|
||||||
|
|
||||||
public function testValidRequestUsingAuthorizationHeader()
|
public function testValidRequestUsingAuthorizationHeader()
|
||||||
{
|
{
|
||||||
$bearer = new Bearer();
|
$bearer = new Bearer();
|
||||||
|
|||||||
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
@@ -133,17 +133,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bshaffer/oauth2-server-php",
|
"name": "bshaffer/oauth2-server-php",
|
||||||
"version": "v1.12.0",
|
"version": "v1.12.1",
|
||||||
"version_normalized": "1.12.0.0",
|
"version_normalized": "1.12.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bshaffer/oauth2-server-php.git",
|
"url": "https://github.com/bshaffer/oauth2-server-php.git",
|
||||||
"reference": "60254fc7fbb08ce56164faae9e075068adf914ef"
|
"reference": "2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/bshaffer/oauth2-server-php/zipball/60254fc7fbb08ce56164faae9e075068adf914ef",
|
"url": "https://api.github.com/repos/bshaffer/oauth2-server-php/zipball/2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985",
|
||||||
"reference": "60254fc7fbb08ce56164faae9e075068adf914ef",
|
"reference": "2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
"predis/predis": "Required to use Redis storage",
|
"predis/predis": "Required to use Redis storage",
|
||||||
"thobbs/phpcassa": "Required to use Cassandra storage"
|
"thobbs/phpcassa": "Required to use Cassandra storage"
|
||||||
},
|
},
|
||||||
"time": "2022-04-19T17:09:11+00:00",
|
"time": "2022-05-31T16:12:58+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/bshaffer/oauth2-server-php/issues",
|
"issues": "https://github.com/bshaffer/oauth2-server-php/issues",
|
||||||
"source": "https://github.com/bshaffer/oauth2-server-php/tree/v1.12.0"
|
"source": "https://github.com/bshaffer/oauth2-server-php/tree/v1.12.1"
|
||||||
},
|
},
|
||||||
"install-path": "../bshaffer/oauth2-server-php"
|
"install-path": "../bshaffer/oauth2-server-php"
|
||||||
},
|
},
|
||||||
|
|||||||
10
vendor/composer/installed.php
vendored
10
vendor/composer/installed.php
vendored
@@ -3,7 +3,7 @@
|
|||||||
'name' => 'zotlabs/hubzilla',
|
'name' => 'zotlabs/hubzilla',
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => '54f4762e1ac1512c2c1106cf68833f8a7135420f',
|
'reference' => 'bec76bd0577c5b131adffd8665afc73a4602bd03',
|
||||||
'type' => 'application',
|
'type' => 'application',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -29,9 +29,9 @@
|
|||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'bshaffer/oauth2-server-php' => array(
|
'bshaffer/oauth2-server-php' => array(
|
||||||
'pretty_version' => 'v1.12.0',
|
'pretty_version' => 'v1.12.1',
|
||||||
'version' => '1.12.0.0',
|
'version' => '1.12.1.0',
|
||||||
'reference' => '60254fc7fbb08ce56164faae9e075068adf914ef',
|
'reference' => '2bfaf9d7bbebe2ba1c1deb48e756ba0b3af4e985',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../bshaffer/oauth2-server-php',
|
'install_path' => __DIR__ . '/../bshaffer/oauth2-server-php',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
'zotlabs/hubzilla' => array(
|
'zotlabs/hubzilla' => array(
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => '54f4762e1ac1512c2c1106cf68833f8a7135420f',
|
'reference' => 'bec76bd0577c5b131adffd8665afc73a4602bd03',
|
||||||
'type' => 'application',
|
'type' => 'application',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
|
|||||||
Reference in New Issue
Block a user