Skip to content

Commit

Permalink
Remove unnecessary OAuth grants
Browse files Browse the repository at this point in the history
  • Loading branch information
jaureguivictoria committed May 9, 2018
1 parent f37cb7d commit b15a60f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/Providers/EuridesPassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,13 @@ protected function registerAuthorizationServer()
{
$this->app->singleton(AuthorizationServer::class, function () {
return tap($this->makeAuthorizationServer(), function ($server) {
$server->enableGrantType(
$this->makeAuthCodeGrant(), Passport::tokensExpireIn()
);

$server->enableGrantType(
$this->makeRefreshTokenGrant(), Passport::tokensExpireIn()
);

$server->enableGrantType(
$this->makePasswordGrant(), Passport::tokensExpireIn()
);

$server->enableGrantType(
new PersonalAccessGrant(), new DateInterval('P7D')
);

$server->enableGrantType(
new ClientCredentialsGrant(), Passport::tokensExpireIn()
);

if (Passport::$implicitGrantEnabled) {
$server->enableGrantType(
$this->makeImplicitGrant(), Passport::tokensExpireIn()
);
}
});
});
}
Expand Down

0 comments on commit b15a60f

Please sign in to comment.