diff --git a/src/ServiceProviders/ClientCredentialsGrantServerProvider.php b/src/ServiceProviders/ClientCredentialsGrantServerProvider.php new file mode 100644 index 00000000..97232f94 --- /dev/null +++ b/src/ServiceProviders/ClientCredentialsGrantServerProvider.php @@ -0,0 +1,29 @@ +getContainer(); + + $container->add('ClientCredentialsGrant', function () use ($container) { + $grant = new ClientCredentialsGrant( + $container->get('emitter'), + $container->get('ClientRepository'), + $container->get('ScopeRepository'), + $container->get('AccessTokenRepository') + ); + return $grant; + }); + } +}