Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Add auth interface to the config provider #30

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
use League\OAuth2\Server\ResourceServer;
use Zend\Expressive\Authentication\AuthenticationInterface;
use Zend\Expressive\Authentication\OAuth2\Repository\Pdo;

class ConfigProvider
Expand Down Expand Up @@ -47,7 +48,8 @@ public function getDependencies() : array
ClientRepositoryInterface::class => Pdo\ClientRepository::class,
RefreshTokenRepositoryInterface::class => Pdo\RefreshTokenRepository::class,
ScopeRepositoryInterface::class => Pdo\ScopeRepository::class,
UserRepositoryInterface::class => Pdo\UserRepository::class
UserRepositoryInterface::class => Pdo\UserRepository::class,
AuthenticationInterface::class => OAuth2Adapter::class
],
'factories' => [
OAuth2Middleware::class => OAuth2MiddlewareFactory::class,
Expand Down