@@ -45,8 +45,7 @@ |
||
| 45 | 45 | * @class ClientCredentialsGrant |
| 46 | 46 | * @package Platine\OAuth2\Grant |
| 47 | 47 | */ |
| 48 | -class ClientCredentialsGrant extends BaseGrant |
|
| 49 | -{ |
|
| 48 | +class ClientCredentialsGrant extends BaseGrant { |
|
| 50 | 49 | public const GRANT_TYPE = 'client_credentials'; |
| 51 | 50 | public const GRANT_RESPONSE_TYPE = ''; |
| 52 | 51 | |
@@ -38,8 +38,7 @@ |
||
| 38 | 38 | * @class TokenOwnerInterface |
| 39 | 39 | * @package Platine\OAuth2\Entity |
| 40 | 40 | */ |
| 41 | -interface UserAuthenticationInterface |
|
| 42 | -{ |
|
| 41 | +interface UserAuthenticationInterface { |
|
| 43 | 42 | /** |
| 44 | 43 | * Validate the user |
| 45 | 44 | * this MUST return an object that implement the TokenOwnerInterface, or |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | * @class AuthorizationServerInterface |
| 43 | 43 | * @package Platine\OAuth2 |
| 44 | 44 | */ |
| 45 | -interface AuthorizationServerInterface |
|
| 46 | -{ |
|
| 45 | +interface AuthorizationServerInterface { |
|
| 47 | 46 | /** |
| 48 | 47 | * Whether the authorization server has support the given grant |
| 49 | 48 | * @param string $grant |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | * @class AuthorizationServer |
| 52 | 52 | * @package Platine\OAuth2 |
| 53 | 53 | */ |
| 54 | -class AuthorizationServer implements AuthorizationServerInterface |
|
| 55 | -{ |
|
| 54 | +class AuthorizationServer implements AuthorizationServerInterface { |
|
| 56 | 55 | /** |
| 57 | 56 | * The ClientService |
| 58 | 57 | * @var ClientService |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | * @class ResourceServer |
| 48 | 48 | * @package Platine\OAuth2 |
| 49 | 49 | */ |
| 50 | -class ResourceServer implements ResourceServerInterface |
|
| 51 | -{ |
|
| 50 | +class ResourceServer implements ResourceServerInterface { |
|
| 52 | 51 | /** |
| 53 | 52 | * The AccessTokenService |
| 54 | 53 | * @var AccessTokenService |
@@ -45,8 +45,7 @@ |
||
| 45 | 45 | * @class ResourceServerInterface |
| 46 | 46 | * @package Platine\OAuth2 |
| 47 | 47 | */ |
| 48 | -interface ResourceServerInterface |
|
| 49 | -{ |
|
| 48 | +interface ResourceServerInterface { |
|
| 50 | 49 | /** |
| 51 | 50 | * Return the access token |
| 52 | 51 | * @param ServerRequestInterface $request |