1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Http\OAuth2; |
4: | |
5: | use Salient\Core\AbstractEnumeration; |
6: | |
7: | /** |
8: | * OAuth 2.0 flows |
9: | * |
10: | * @extends AbstractEnumeration<int> |
11: | */ |
12: | class OAuth2Flow extends AbstractEnumeration |
13: | { |
14: | /** |
15: | * Client Credentials flow |
16: | */ |
17: | public const CLIENT_CREDENTIALS = 0; |
18: | |
19: | /** |
20: | * Authorization Code flow |
21: | */ |
22: | public const AUTHORIZATION_CODE = 1; |
23: | } |
24: |