forked from trikoder/oauth2-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OAuth2Events.php
33 lines (28 loc) · 1005 Bytes
/
OAuth2Events.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
namespace Trikoder\Bundle\OAuth2Bundle;
final class OAuth2Events
{
/**
* The USER_RESOLVE event occurrs when the client requests a "password"
* grant type from the authorization server.
*
* You should set a valid user here if applicable.
*/
public const USER_RESOLVE = 'trikoder.oauth2.user_resolve';
/**
* The SCOPE_RESOLVE event occurrs right before the user obtains their
* valid access token.
*
* You could alter the access token's scope here.
*/
public const SCOPE_RESOLVE = 'trikoder.oauth2.scope_resolve';
/**
* The AUTHORIZATION_REQUEST_RESOLVE event occurrs right before the system
* complete the authorization request.
*
* You could approve or deny the authorization request, or set the uri where
* must be redirected to resolve the authorization request.
*/
public const AUTHORIZATION_REQUEST_RESOLVE = 'trikoder.oauth2.authorization_request_resolve';
}