Commit 5f5c4aed authored by Viral Solani's avatar Viral Solani

jwt authentication issues

parent 9a93fab0
...@@ -38,7 +38,7 @@ class AuthController extends APIController ...@@ -38,7 +38,7 @@ class AuthController extends APIController
return $this->respondInternalError($e->getMessage()); return $this->respondInternalError($e->getMessage());
} }
return $this->respondWithToken($token); return $token;
} }
/** /**
...@@ -82,6 +82,7 @@ class AuthController extends APIController ...@@ -82,6 +82,7 @@ class AuthController extends APIController
*/ */
protected function respondWithToken($token) protected function respondWithToken($token)
{ {
return $token;
return response()->json([ return response()->json([
'access_token' => $token, 'access_token' => $token,
// 'token_type' => 'bearer', // 'token_type' => 'bearer',
......
...@@ -76,7 +76,7 @@ class Kernel extends HttpKernel ...@@ -76,7 +76,7 @@ class Kernel extends HttpKernel
*/ */
'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class, 'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class,
'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class, 'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class,
// 'jwt.auth' => GetUserFromToken::class, 'jwt.auth' => GetUserFromToken::class,
// 'jwt.refresh' => RefreshToken::class, 'jwt.refresh' => RefreshToken::class,
]; ];
} }
...@@ -2641,25 +2641,28 @@ ...@@ -2641,25 +2641,28 @@
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
"version": "v6.1.3", "version": "v6.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git", "url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4" "reference": "6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8ddcb66ac10c392d3beb54829eef8ac1438595f4", "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707",
"reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4", "reference": "6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"egulias/email-validator": "~2.0", "egulias/email-validator": "~2.0",
"php": ">=7.0.0" "php": ">=7.0.0",
"symfony/polyfill-iconv": "^1.0",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "^1.0"
}, },
"require-dev": { "require-dev": {
"mockery/mockery": "~0.9.1", "mockery/mockery": "~0.9.1",
"symfony/phpunit-bridge": "~3.3@dev" "symfony/phpunit-bridge": "^3.4.19|^4.1.8"
}, },
"suggest": { "suggest": {
"ext-intl": "Needed to support internationalized email addresses", "ext-intl": "Needed to support internationalized email addresses",
...@@ -2668,7 +2671,7 @@ ...@@ -2668,7 +2671,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "6.1-dev" "dev-master": "6.2-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -2696,7 +2699,7 @@ ...@@ -2696,7 +2699,7 @@
"mail", "mail",
"mailer" "mailer"
], ],
"time": "2018-09-11T07:12:52+00:00" "time": "2019-03-10T07:52:41+00:00"
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
...@@ -3261,6 +3264,127 @@ ...@@ -3261,6 +3264,127 @@
], ],
"time": "2018-08-06T14:22:27+00:00" "time": "2018-08-06T14:22:27+00:00"
}, },
{
"name": "symfony/polyfill-iconv",
"version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-iconv.git",
"reference": "97001cfc283484c9691769f51cdf25259037eba2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/97001cfc283484c9691769f51cdf25259037eba2",
"reference": "97001cfc283484c9691769f51cdf25259037eba2",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"suggest": {
"ext-iconv": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.9-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Iconv\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for the Iconv extension",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"iconv",
"polyfill",
"portable",
"shim"
],
"time": "2018-09-21T06:26:08+00:00"
},
{
"name": "symfony/polyfill-intl-idn",
"version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git",
"reference": "89de1d44f2c059b266f22c9cc9124ddc4cd0987a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/89de1d44f2c059b266f22c9cc9124ddc4cd0987a",
"reference": "89de1d44f2c059b266f22c9cc9124ddc4cd0987a",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"symfony/polyfill-mbstring": "^1.3",
"symfony/polyfill-php72": "^1.9"
},
"suggest": {
"ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.9-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Intl\\Idn\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
},
{
"name": "Laurent Bassin",
"email": "laurent@bassin.info"
}
],
"description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"idn",
"intl",
"polyfill",
"portable",
"shim"
],
"time": "2018-09-30T16:36:12+00:00"
},
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.10.0", "version": "v1.10.0",
...@@ -3850,16 +3974,16 @@ ...@@ -3850,16 +3974,16 @@
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
"version": "v3.3.2", "version": "v3.3.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/vlucas/phpdotenv.git", "url": "https://github.com/vlucas/phpdotenv.git",
"reference": "1ee9369cfbf26cfcf1f2515d98f15fab54e9647a" "reference": "dbcc609971dd9b55f48b8008b553d79fd372ddde"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1ee9369cfbf26cfcf1f2515d98f15fab54e9647a", "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/dbcc609971dd9b55f48b8008b553d79fd372ddde",
"reference": "1ee9369cfbf26cfcf1f2515d98f15fab54e9647a", "reference": "dbcc609971dd9b55f48b8008b553d79fd372ddde",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3898,7 +4022,7 @@ ...@@ -3898,7 +4022,7 @@
"env", "env",
"environment" "environment"
], ],
"time": "2019-01-30T10:43:17+00:00" "time": "2019-03-06T09:39:45+00:00"
}, },
{ {
"name": "yajra/laravel-datatables-oracle", "name": "yajra/laravel-datatables-oracle",
...@@ -5816,16 +5940,16 @@ ...@@ -5816,16 +5940,16 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "0.11.2", "version": "0.11.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "8e185a74004920419ee97bf9dc62e6a175e8dca5" "reference": "e4644b4a8fd393c346f1137305fb2f76a7dc20a7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/8e185a74004920419ee97bf9dc62e6a175e8dca5", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e4644b4a8fd393c346f1137305fb2f76a7dc20a7",
"reference": "8e185a74004920419ee97bf9dc62e6a175e8dca5", "reference": "e4644b4a8fd393c346f1137305fb2f76a7dc20a7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -5885,7 +6009,7 @@ ...@@ -5885,7 +6009,7 @@
"MIT" "MIT"
], ],
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"time": "2019-02-12T14:54:38+00:00" "time": "2019-03-10T16:25:30+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -15,9 +15,12 @@ ...@@ -15,9 +15,12 @@
"cross-env": "^5.1", "cross-env": "^5.1",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"jquery": "^3.1.1", "jquery": "^3.1.1",
"laravel-mix": "^2.1.14", "laravel-mix": "^4.0.14",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"resolve-url-loader": "2.3.1",
"sass-loader": "7.*",
"vue": "^2.6.8", "vue": "^2.6.8",
"vue-template-compiler": "^2.6.8",
"webpack-rtl-plugin": "^1.8.1" "webpack-rtl-plugin": "^1.8.1"
}, },
"dependencies": { "dependencies": {
......
const { mix } = require('laravel-mix'); const mix = require('laravel-mix');
const WebpackRTLPlugin = require('webpack-rtl-plugin'); const WebpackRTLPlugin = require('webpack-rtl-plugin');
/* /*
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment