Skip to content

Commit

Permalink
Merge pull request #5 from koriym/attribute3
Browse files Browse the repository at this point in the history
Update Extractors binding
  • Loading branch information
kuma-guy authored Dec 21, 2022
2 parents b97bf55 + b934609 commit 89e46b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Auth0Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ protected function configure() : void

$this->bind()->annotatedWith(Auth0Config::class)->toInstance($this->config);
$this->bind(AuthInterface::class)->to(Auth::class)->in(Scope::SINGLETON);
$this->bind()->annotatedWith(Extractors::class)->to(AuthorizationHeaderTokenExtractor::class);
$this->bind()->annotatedWith(Extractors::class)->toInstance([
new AuthorizationHeaderTokenExtractor
]);
$this->bind(TokenExtractorResolver::class)->in(Scope::SINGLETON);
$this->bind(Management::class)->toProvider(ManagementClientProvider::class);
$this->bind(Authentication::class)->toProvider(AuthenticationClientProvider::class);
Expand Down

0 comments on commit 89e46b5

Please sign in to comment.