diff --git a/src/Passport.php b/src/Passport.php index d1a6c0e90..04061f6d6 100644 --- a/src/Passport.php +++ b/src/Passport.php @@ -177,6 +177,13 @@ class Passport */ public static $authorizationServerResponseType; + /** + * The authorization validator. + * + * @var \League\OAuth2\Server\AuthorizationValidators\AuthorizationValidatorInterface|null + */ + public static $authorizationValidator; + /** * Indicates if Passport routes will be registered. * diff --git a/src/PassportServiceProvider.php b/src/PassportServiceProvider.php index 99e345e17..c24dfdfdf 100644 --- a/src/PassportServiceProvider.php +++ b/src/PassportServiceProvider.php @@ -310,7 +310,8 @@ protected function registerResourceServer() $this->app->singleton(ResourceServer::class, function ($container) { return new ResourceServer( $container->make(Bridge\AccessTokenRepository::class), - $this->makeCryptKey('public') + $this->makeCryptKey('public'), + Passport::$authorizationValidator ); }); }