diff --git a/.circleci/config.yml b/.circleci/config.yml
index b43357b3..6e103b87 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,31 +7,53 @@ commands:
- run: sudo composer self-update
- restore_cache:
keys:
- - composer-v1-{{ checksum "composer.json" }}
- - composer-v1-
- - run: composer install -n --prefer-dist
+ - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.json" }}
+ - composer-v1-{{ .Environment.CIRCLE_JOB }}
+ - run: composer update --prefer-dist --no-interaction
- persist_to_workspace:
root: .
paths:
- composer.*
- .snyk
- save_cache:
- key: composer-v1-{{ checksum "composer.json" }}
+ key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.json" }}
paths:
- vendor
+ run-php-compatibility:
+ steps:
+ - run: composer compat
+ run-static-analysis:
+ steps:
+ - run: composer analyze
+ run-unit-tests:
+ steps:
+ - run: composer test
+ - store_artifacts:
+ path: build/coverage.xml
jobs:
- php_7:
+ php_7_3:
docker:
- - image: circleci/php:7.1
+ - image: circleci/php:7.3
steps:
- prepare
- - run:
- name: Check PHP Compatibility
- command: composer phpcs
- - run:
- name: Run Tests
- command: composer test
+ - run-php-compatibility
+ - run-static-analysis
+ - run-unit-tests
+ php_7_4:
+ docker:
+ - image: circleci/php:7.4
+ steps:
+ - prepare
+ - run-static-analysis
+ - run-unit-tests
+ php_8_0:
+ docker:
+ - image: circleci/php:8.0
+ steps:
+ - prepare
+ - run-static-analysis
+ - run-unit-tests
snyk:
docker:
- image: snyk/snyk-cli:composer
@@ -47,13 +69,13 @@ jobs:
fi
when: always
-#Each workflow represents a Github check
workflows:
- snyk:
+ build-and-test:
jobs:
- - php_7
+ - php_7_3
+ - php_7_4
+ - php_8_0
- snyk:
- # Must define SNYK_TOKEN env
context: snyk-env
requires:
- - php_7
+ - php_7_3
diff --git a/.phpcs-compat.xml.dist b/.phpcs-compat.xml.dist
new file mode 100644
index 00000000..816c94c8
--- /dev/null
+++ b/.phpcs-compat.xml.dist
@@ -0,0 +1,16 @@
+
+
+ PHPCompatibility check for Auth0 Laravel SDK
+ ./src
+
+
+
+
+
+
+
+
+
diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index c1aa8dda..b5f52d09 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -20,7 +20,99 @@
PHPCompatibility sniffs to check for PHP cross-version incompatible code.
https://github.com/PHPCompatibility/PHPCompatibility
-->
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tests/*\.php
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 305841fa..6585669e 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,19 @@
# Laravel Auth0 Plugin
-This plugin helps you integrate your [Laravel](https://laravel.com/) WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps.
-
-- Master targets compatibility with Laravel 5.7 and above.
-- The 3.x branch (not maintained) targets Laravel 5.2 compatibility.
-- The 2.x branch (not maintained) targets Laravel 5.0 and 5.1 compatibility.
-- If you are working with an older version (Laravel 4.x), use version 1.0.* (not maintained)
-
[](https://circleci.com/gh/auth0/laravel-auth0)
[](https://packagist.org/packages/auth0/login)
[](https://packagist.org/packages/auth0/login)
[](https://packagist.org/packages/auth0/login)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Flaravel-auth0?ref=badge_shield)
+This plugin helps you integrate your [Laravel](https://laravel.com/) WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps.
+
+## Supported Framework Versions
+
+Our plugin maintains support for [all actively supported versions](https://laravel.com/docs/8.x/releases#support-policy) of the Laravel framework, including [6.X (LTS)](https://laravel.com/docs/8.x/releases), [7.X](https://laravel.com/docs/7.x/releases) and [8.X](https://laravel.com/docs/8.x/releases).
+
+Past releases of our plugin may potentially run on earlier, now unsupported versions of the Laravel framework, but these releases are not maintained. The final release of our plugin to support the Laravel 5.X series was 6.1.0.
+
## Documentation
Please see the [Laravel webapp quickstart](https://auth0.com/docs/quickstart/webapp/laravel) for a complete guide on how to install this in an existing project or to download a pre-configured sample project. Additional documentation on specific scenarios is below.
@@ -50,6 +51,7 @@ You can customize the way you handle the users in your application by creating y
### Using auth guard
To protect APIs using an access token generated by Auth0, there is an `auth0` API guard provided ([Laravel documentation on guards](https://laravel.com/docs/7.x/authentication#adding-custom-guards)). To use this guard, add it to `config/auth.php` with the driver `auth0`:
+
```
'guards' => [
...
@@ -68,6 +70,7 @@ To protect APIs using an access token generated by Auth0, there is an `auth0` AP
```
Once that has been added, add the guard to the middleware of any API route and check authentication during the request:
+
```
// get user
auth('auth0')->user();
@@ -118,5 +121,4 @@ Auth0 helps you to easily:
The Auth0 Laravel Login plugin is licensed under MIT - [LICENSE](LICENSE.txt)
-
-[](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Flaravel-auth0?ref=badge_large)
\ No newline at end of file
+[](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Flaravel-auth0?ref=badge_large)
diff --git a/composer.json b/composer.json
index 94d8a20e..5e2d1109 100644
--- a/composer.json
+++ b/composer.json
@@ -1,25 +1,37 @@
{
"name": "auth0/login",
- "description": "Laravel plugin that helps authenticate with the auth0 service",
+ "description": "Laravel plugin that helps authenticate with the Auth0 service",
"license": "MIT",
- "prefer-stable": true,
"require": {
- "php": "^7.1",
- "auth0/auth0-php": "^7.2.0",
- "illuminate/support": "5.* | ^6.0 | ^7.0 | ^8.0",
- "illuminate/contracts": "5.* | ^6.0 | ^7.0 | ^8.0"
+ "php": "^7.3 | ^8.0",
+ "ext-json": "*",
+ "ext-openssl": "*",
+ "auth0/auth0-php": "^7.6",
+ "illuminate/support": " ^6.0 | ^7.0 | ^8.0",
+ "illuminate/contracts": "^6.0 | ^7.0 | ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^7|^8|^9",
+ "phpunit/phpunit": "^9.3",
"squizlabs/php_codesniffer": "^3.2",
"phpcompatibility/php-compatibility": "^8.1",
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
- "orchestra/testbench": "^3.8|^4.0|^5.0"
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
+ "orchestra/testbench": "^4.0 | ^5.0",
+ "nunomaduro/larastan": "^0.6.11"
},
"scripts": {
- "test": "SHELL_INTERACTIVE=1 \"vendor/bin/phpunit\" --coverage-text ",
- "phpcs": "\"vendor/bin/phpcs\"",
- "sniffs": "\"vendor/bin/phpcs\" -e"
+ "test": "SHELL_INTERACTIVE=1 \"./vendor/bin/phpunit\" --coverage-text ",
+ "analyze": "@php ./vendor/bin/phpstan analyze",
+ "compat": "@php ./vendor/bin/phpcs --standard=.phpcs-compat.xml.dist",
+ "format": "@php ./vendor/bin/phpcbf",
+ "lint": "@php ./vendor/bin/phpcs",
+ "sniffs": "@php ./vendor/bin/phpcs -e",
+ "config-phpcs": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
+ "pre-commit": [
+ "@analyze",
+ "@test",
+ "@format",
+ "@compat"
+ ]
},
"autoload": {
"classmap": [
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
index 00000000..5cc39852
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,8 @@
+parameters:
+ checkGenericClassInNonGenericObjectType: false
+ level: 2
+ ignoreErrors:
+ - '#Call to an undefined static method Event::listen#'
+ - '#Call to static method#'
+ paths:
+ - src
diff --git a/src/Auth0/Login/Auth0JWTUser.php b/src/Auth0/Login/Auth0JWTUser.php
index 013a2239..6c59ec2d 100644
--- a/src/Auth0/Login/Auth0JWTUser.php
+++ b/src/Auth0/Login/Auth0JWTUser.php
@@ -8,12 +8,13 @@
*/
class Auth0JWTUser implements \Illuminate\Contracts\Auth\Authenticatable
{
+
private $userInfo;
/**
* Auth0JWTUser constructor.
*
- * @param $userInfo
+ * @param array $userInfo
*/
public function __construct(array $userInfo)
{
@@ -75,7 +76,7 @@ public function getRememberTokenName()
*/
public function __get($name)
{
- if (!array_key_exists($name, $this->userInfo)) {
+ if (! array_key_exists($name, $this->userInfo)) {
return;
}
diff --git a/src/Auth0/Login/Auth0Service.php b/src/Auth0/Login/Auth0Service.php
index 6d153d1c..7845eb94 100644
--- a/src/Auth0/Login/Auth0Service.php
+++ b/src/Auth0/Login/Auth0Service.php
@@ -12,26 +12,31 @@
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Http\RedirectResponse;
use Psr\SimpleCache\CacheInterface;
+use Illuminate\Contracts\Auth\Authenticatable;
/**
* Service that provides access to the Auth0 SDK.
*/
class Auth0Service
{
+
/**
* @var Auth0
*/
private $auth0;
private $apiuser;
+
private $_onLoginCb = null;
+
private $rememberUser = false;
+
private $auth0Config = [];
/**
* Auth0Service constructor.
*
- * @param array|null $auth0Config
+ * @param array $auth0Config
* @param StoreInterface|null $store
* @param CacheInterface|null $cache
*
@@ -43,25 +48,26 @@ public function __construct(
CacheInterface $cache = null
)
{
-
- if (!$auth0Config instanceof ConfigRepository && !is_array($auth0Config)) {
+ if (! $auth0Config instanceof ConfigRepository && ! is_array($auth0Config)) {
$auth0Config = config('laravel-auth0');
}
$store = $auth0Config['store'] ?? $store;
- if (false !== $store && !$store instanceof StoreInterface) {
+ if (false !== $store && ! $store instanceof StoreInterface) {
$store = new LaravelSessionStore();
}
+
$auth0Config['store'] = $store;
$cache = $auth0Config['cache_handler'] ?? $cache;
- if (!($cache instanceof CacheInterface)) {
+ if (! ($cache instanceof CacheInterface)) {
$cache = app()->make('cache.store');
}
+
$auth0Config['cache_handler'] = $cache;
$this->auth0Config = $auth0Config;
- $this->auth0 = new Auth0($auth0Config);
+ $this->auth0 = new Auth0($auth0Config);
}
/**
@@ -96,7 +102,7 @@ public function login($connection = null, $state = null, $additional_params = ['
}
$additional_params['response_type'] = $response_type;
- $auth_url = $this->auth0->getLoginUrl($additional_params);
+ $auth_url = $this->auth0->getLoginUrl($additional_params);
return new RedirectResponse($auth_url);
}
@@ -109,7 +115,7 @@ public function getUser()
{
// Get the user info from auth0
$auth0 = $this->getSDK();
- $user = $auth0->getUser();
+ $user = $auth0->getUser();
if ($user === null) {
return;
@@ -124,7 +130,7 @@ public function getUser()
/**
* Sets a callback to be called when the user is logged in.
*
- * @param callback $cb A function that receives an auth0User and receives a Laravel user
+ * @param mixed $cb A function that receives an auth0User and receives a Laravel user
*/
public function onLogin($cb)
{
@@ -132,7 +138,7 @@ public function onLogin($cb)
}
/**
- * @return bool
+ * @return boolean
*/
public function hasOnLogin()
{
@@ -140,7 +146,7 @@ public function hasOnLogin()
}
/**
- * @param $auth0User
+ * @param Authenticatable $auth0User
*
* @return mixed
*/
@@ -154,7 +160,7 @@ public function callOnLogin($auth0User)
*
* @param null $value
*
- * @return bool|null
+ * @return boolean|null
*/
public function rememberUser($value = null)
{
@@ -166,23 +172,23 @@ public function rememberUser($value = null)
}
/**
- * @param $encUser
- * @param array $verifierOptions
+ * @param string $encUser
+ * @param array $verifierOptions
*
* @return array
* @throws \Auth0\SDK\Exception\InvalidTokenException
*/
public function decodeJWT($encUser, array $verifierOptions = [])
{
- $token_issuer = 'https://'.$this->auth0Config['domain'].'/';
+ $token_issuer = 'https://'.$this->auth0Config['domain'].'/';
$apiIdentifier = $this->auth0Config['api_identifier'];
- $idTokenAlg = $this->auth0Config['supported_algs'][0] ?? 'RS256';
+ $idTokenAlg = $this->auth0Config['supported_algs'][0] ?? 'RS256';
$signature_verifier = null;
if ('RS256' === $idTokenAlg) {
- $jwksUri = $this->auth0Config['jwks_uri'] ?? 'https://'.$this->auth0Config['domain'].'/.well-known/jwks.json';
- $jwks_fetcher = new JWKFetcher($this->auth0Config['cache_handler']);
- $jwks = $jwks_fetcher->getKeys($jwksUri);
+ $jwksUri = $this->auth0Config['jwks_uri'] ?? 'https://'.$this->auth0Config['domain'].'/.well-known/jwks.json';
+ $jwks_fetcher = new JWKFetcher($this->auth0Config['cache_handler']);
+ $jwks = $jwks_fetcher->getKeys($jwksUri);
$signature_verifier = new AsymmetricVerifier($jwks);
} else if ('HS256' === $idTokenAlg) {
$signature_verifier = new SymmetricVerifier($this->auth0Config['client_secret']);
diff --git a/src/Auth0/Login/Auth0User.php b/src/Auth0/Login/Auth0User.php
index 3fe607b2..fa108f9a 100644
--- a/src/Auth0/Login/Auth0User.php
+++ b/src/Auth0/Login/Auth0User.php
@@ -8,18 +8,20 @@
*/
class Auth0User implements \Illuminate\Contracts\Auth\Authenticatable
{
+
protected $userInfo;
+
protected $accessToken;
/**
* Auth0User constructor.
*
- * @param array $userInfo
+ * @param array $userInfo
* @param string|null $accessToken
*/
public function __construct(array $userInfo, $accessToken)
{
- $this->userInfo = $userInfo;
+ $this->userInfo = $userInfo;
$this->accessToken = $accessToken;
}
@@ -30,10 +32,11 @@ public function __construct(array $userInfo, $accessToken)
*/
public function getAuthIdentifier()
{
- if (isset($this->userInfo['sub'])) {
- return $this->userInfo['sub'];
- }
- return $this->userInfo['user_id'];
+ if (isset($this->userInfo['sub'])) {
+ return $this->userInfo['sub'];
+ }
+
+ return $this->userInfo['user_id'];
}
/**
@@ -80,11 +83,11 @@ public function getRememberTokenName()
/**
* Add a generic getter to get all the properties of the userInfo.
*
- * @return the related value or null if it is not set
+ * @return null|mixed Returns the related value, or null if not set.
*/
public function __get($name)
{
- if (!array_key_exists($name, $this->userInfo)) {
+ if (! array_key_exists($name, $this->userInfo)) {
return;
}
diff --git a/src/Auth0/Login/Auth0UserProvider.php b/src/Auth0/Login/Auth0UserProvider.php
index f7151add..b9a53288 100644
--- a/src/Auth0/Login/Auth0UserProvider.php
+++ b/src/Auth0/Login/Auth0UserProvider.php
@@ -14,7 +14,9 @@
*/
class Auth0UserProvider implements UserProvider
{
+
protected $userRepository;
+
protected $auth0;
/**
@@ -26,7 +28,7 @@ class Auth0UserProvider implements UserProvider
public function __construct(Auth0UserRepository $userRepository, Auth0Service $auth0)
{
$this->userRepository = $userRepository;
- $this->auth0 = $auth0;
+ $this->auth0 = $auth0;
}
/**
@@ -45,11 +47,11 @@ public function retrieveByID($identifier)
/**
* @param array $credentials
*
- * @return bool|Authenticatable
+ * @return boolean|Authenticatable
*/
public function retrieveByCredentials(array $credentials)
{
- if (!isset($credentials['api_token'])) {
+ if (! isset($credentials['api_token'])) {
return null;
}
diff --git a/src/Auth0/Login/Contract/Auth0UserRepository.php b/src/Auth0/Login/Contract/Auth0UserRepository.php
index 439101e0..746182a2 100644
--- a/src/Auth0/Login/Contract/Auth0UserRepository.php
+++ b/src/Auth0/Login/Contract/Auth0UserRepository.php
@@ -2,7 +2,7 @@
namespace Auth0\Login\Contract;
-use \Illuminate\Contracts\Auth\Authenticatable;
+use Illuminate\Contracts\Auth\Authenticatable;
interface Auth0UserRepository
{
@@ -21,7 +21,7 @@ public function getUserByDecodedJWT(array $decodedJwt) : Authenticatable;
public function getUserByUserInfo(array $userInfo) : Authenticatable;
/**
- * @param string|int|null $identifier the user id
+ * @param string|integer|null $identifier the user id
*
* @return Authenticatable|null
*/
diff --git a/src/Auth0/Login/LaravelSessionStore.php b/src/Auth0/Login/LaravelSessionStore.php
index c2eaf784..3b8c13a2 100644
--- a/src/Auth0/Login/LaravelSessionStore.php
+++ b/src/Auth0/Login/LaravelSessionStore.php
@@ -22,8 +22,8 @@ public function set(string $key, $value)
}
/**
- * @param $key
- * @param null $default
+ * @param string $key
+ * @param null $default
*
* @return mixed
*/
diff --git a/src/Auth0/Login/LoginServiceProvider.php b/src/Auth0/Login/LoginServiceProvider.php
index 67ec7a08..441a2377 100644
--- a/src/Auth0/Login/LoginServiceProvider.php
+++ b/src/Auth0/Login/LoginServiceProvider.php
@@ -14,7 +14,7 @@
class LoginServiceProvider extends ServiceProvider
{
- const SDK_VERSION = "6.1.0";
+ const SDK_VERSION = '6.1.0';
/**
* Bootstrap the application events.
diff --git a/src/Auth0/Login/Repository/Auth0UserRepository.php b/src/Auth0/Login/Repository/Auth0UserRepository.php
index dc6b8b90..8a0dc7a7 100644
--- a/src/Auth0/Login/Repository/Auth0UserRepository.php
+++ b/src/Auth0/Login/Repository/Auth0UserRepository.php
@@ -30,7 +30,7 @@ public function getUserByUserInfo(array $userInfo) : Authenticatable
}
/**
- * @param string|int|null $identifier
+ * @param string|integer|null $identifier
*
* @return Authenticatable|null
*/
@@ -50,5 +50,7 @@ public function getUserByIdentifier($identifier) : ?Authenticatable
if ($auth0User && $auth0User->getAuthIdentifier() == $identifier) {
return $auth0User;
}
+
+ return null;
}
}
diff --git a/src/config/config.php b/src/config/config.php
index 66a1a5f4..9af9c0b9 100644
--- a/src/config/config.php
+++ b/src/config/config.php
@@ -3,51 +3,51 @@
return [
/*
- |--------------------------------------------------------------------------
- | Your auth0 domain
- |--------------------------------------------------------------------------
- | As set in the auth0 administration page
- |
+ |--------------------------------------------------------------------------
+ | Your auth0 domain
+ |--------------------------------------------------------------------------
+ | As set in the auth0 administration page
+ |
*/
'domain' => env( 'AUTH0_DOMAIN' ),
/*
- |--------------------------------------------------------------------------
- | Your APP id
- |--------------------------------------------------------------------------
- | As set in the auth0 administration page
- |
+ |--------------------------------------------------------------------------
+ | Your APP id
+ |--------------------------------------------------------------------------
+ | As set in the auth0 administration page
+ |
*/
'client_id' => env( 'AUTH0_CLIENT_ID' ),
/*
- |--------------------------------------------------------------------------
- | Your APP secret
- |--------------------------------------------------------------------------
- | As set in the auth0 administration page
- |
+ |--------------------------------------------------------------------------
+ | Your APP secret
+ |--------------------------------------------------------------------------
+ | As set in the auth0 administration page
+ |
*/
'client_secret' => env( 'AUTH0_CLIENT_SECRET' ),
/*
- |--------------------------------------------------------------------------
- | The redirect URI
- |--------------------------------------------------------------------------
- | Should be the same that the one configure in the route to handle the
- | 'Auth0\Login\Auth0Controller@callback'
- |
- */
- 'redirect_uri' => env( 'APP_URL' ) . '/auth0/callback',
+ |--------------------------------------------------------------------------
+ | The redirect URI
+ |--------------------------------------------------------------------------
+ | Should be the same that the one configure in the route to handle the
+ | 'Auth0\Login\Auth0Controller@callback'
+ |
+ */
+ 'redirect_uri' => env( 'APP_URL' ).'/auth0/callback',
/*
- |--------------------------------------------------------------------------
- | Persistence Configuration
- |--------------------------------------------------------------------------
- | persist_user (Boolean) Optional. Indicates if you want to persist the user info, default true
- | persist_access_token (Boolean) Optional. Indicates if you want to persist the access token, default false
- | persist_refresh_token (Boolean) Optional. Indicates if you want to persist the refresh token, default false
- | persist_id_token (Boolean) Optional. Indicates if you want to persist the id token, default false
- |
+ |--------------------------------------------------------------------------
+ | Persistence Configuration
+ |--------------------------------------------------------------------------
+ | persist_user (Boolean) Optional. Indicates if you want to persist the user info, default true
+ | persist_access_token (Boolean) Optional. Indicates if you want to persist the access token, default false
+ | persist_refresh_token (Boolean) Optional. Indicates if you want to persist the refresh token, default false
+ | persist_id_token (Boolean) Optional. Indicates if you want to persist the id token, default false
+ |
*/
'persist_user' => true,
'persist_access_token' => false,
@@ -55,46 +55,36 @@
'persist_id_token' => false,
/*
- |--------------------------------------------------------------------------
- | The authorized token issuers
- |--------------------------------------------------------------------------
- | This is used to verify the decoded tokens when using RS256
- |
- */
- 'authorized_issuers' => [ env( 'AUTH0_DOMAIN' ) ],
-
- /*
- |--------------------------------------------------------------------------
- | The authorized token audiences
- |--------------------------------------------------------------------------
- |
+ |--------------------------------------------------------------------------
+ | The authorized token audiences
+ |--------------------------------------------------------------------------
+ |
*/
// 'api_identifier' => '',
-
/*
- |--------------------------------------------------------------------------
- | The secret format
- |--------------------------------------------------------------------------
- | Used to know if it should decode the secret when using HS256
- |
+ |--------------------------------------------------------------------------
+ | The secret format
+ |--------------------------------------------------------------------------
+ | Used to know if it should decode the secret when using HS256
+ |
*/
'secret_base64_encoded' => false,
/*
- |--------------------------------------------------------------------------
- | Supported algorithms
- |--------------------------------------------------------------------------
- | Token decoding algorithms supported by your API
- |
+ |--------------------------------------------------------------------------
+ | Supported algorithms
+ |--------------------------------------------------------------------------
+ | Token decoding algorithms supported by your API
+ |
*/
'supported_algs' => [ 'RS256' ],
/*
- |--------------------------------------------------------------------------
- | Guzzle Options
- |--------------------------------------------------------------------------
- | guzzle_options (array) optional. Used to specify additional connection options e.g. proxy settings
- |
+ |--------------------------------------------------------------------------
+ | Guzzle Options
+ |--------------------------------------------------------------------------
+ | guzzle_options (array) optional. Used to specify additional connection options e.g. proxy settings
+ |
*/
// 'guzzle_options' => []
];
diff --git a/src/controllers/Auth0Controller.php b/src/controllers/Auth0Controller.php
index caf608ea..f7e2a25f 100644
--- a/src/controllers/Auth0Controller.php
+++ b/src/controllers/Auth0Controller.php
@@ -7,6 +7,7 @@
class Auth0Controller extends Controller
{
+
/**
* @var Auth0UserRepository
*/
@@ -46,6 +47,7 @@ public function callback()
// If not, the user will be fine
$user = $auth0User;
}
+
\Auth::login($user, $service->rememberUser());
}