Replace emarref/jwt with lcobucci/jwt

Refactor all JWT-related components
Replace RS256 with ES256 as a preferred JWT algorithm
This commit is contained in:
ErickSkrauch
2019-08-01 12:17:12 +03:00
parent 4c2a9cc172
commit 45c2ed601d
47 changed files with 805 additions and 621 deletions

79
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "80ccf8b828493911307a9daa95021dfc",
"content-hash": "2dfa204a51a82cd7c7d6a5b7d1ccbc0c",
"packages": [
{
"name": "bacon/bacon-qr-code",
@@ -54,16 +54,16 @@
},
{
"name": "beberlei/assert",
"version": "v3.2.0",
"version": "v3.2.1",
"source": {
"type": "git",
"url": "https://github.com/beberlei/assert.git",
"reference": "fd82f4c8592c8128dd74481034c31da71ebafc56"
"reference": "ce139b6bf8f07fb8389d2c8e15b98dc24fdd93c7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/beberlei/assert/zipball/fd82f4c8592c8128dd74481034c31da71ebafc56",
"reference": "fd82f4c8592c8128dd74481034c31da71ebafc56",
"url": "https://api.github.com/repos/beberlei/assert/zipball/ce139b6bf8f07fb8389d2c8e15b98dc24fdd93c7",
"reference": "ce139b6bf8f07fb8389d2c8e15b98dc24fdd93c7",
"shasum": ""
},
"require": {
@@ -72,7 +72,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "*",
"phpstan/phpstan-shim": "*",
"phpunit/phpunit": "*"
"phpunit/phpunit": ">=6.0.0 <8"
},
"type": "library",
"autoload": {
@@ -90,13 +90,13 @@
"authors": [
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de",
"role": "Lead Developer"
"role": "Lead Developer",
"email": "kontakt@beberlei.de"
},
{
"name": "Richard Quadling",
"email": "rquadling@gmail.com",
"role": "Collaborator"
"role": "Collaborator",
"email": "rquadling@gmail.com"
}
],
"description": "Thin assertion library for input validation in business models.",
@@ -105,7 +105,7 @@
"assertion",
"validation"
],
"time": "2018-12-24T15:25:25+00:00"
"time": "2019-05-28T15:18:28+00:00"
},
{
"name": "bower-asset/inputmask",
@@ -151,7 +151,7 @@
"version": "v1.3.2",
"source": {
"type": "git",
"url": "git@github.com:bestiejs/punycode.js.git",
"url": "https://github.com/bestiejs/punycode.js.git",
"reference": "38c8d3131a82567bfef18da09f7f4db68c84f8a3"
},
"dist": {
@@ -1146,6 +1146,61 @@
],
"time": "2013-01-29T21:29:14+00:00"
},
{
"name": "lcobucci/jwt",
"version": "3.3.1",
"source": {
"type": "git",
"url": "https://github.com/lcobucci/jwt.git",
"reference": "a11ec5f4b4d75d1fcd04e133dede4c317aac9e18"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/lcobucci/jwt/zipball/a11ec5f4b4d75d1fcd04e133dede4c317aac9e18",
"reference": "a11ec5f4b4d75d1fcd04e133dede4c317aac9e18",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"ext-openssl": "*",
"php": "^5.6 || ^7.0"
},
"require-dev": {
"mikey179/vfsstream": "~1.5",
"phpmd/phpmd": "~2.2",
"phpunit/php-invoker": "~1.1",
"phpunit/phpunit": "^5.7 || ^7.3",
"squizlabs/php_codesniffer": "~2.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.1-dev"
}
},
"autoload": {
"psr-4": {
"Lcobucci\\JWT\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Luís Otávio Cobucci Oblonczyk",
"email": "lcobucci@gmail.com",
"role": "Developer"
}
],
"description": "A simple library to work with JSON Web Token and JSON Web Signature",
"keywords": [
"JWS",
"jwt"
],
"time": "2019-05-24T18:30:49+00:00"
},
{
"name": "league/event",
"version": "2.2.0",