-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTokenScope.php
More file actions
64 lines (51 loc) · 1.74 KB
/
TokenScope.php
File metadata and controls
64 lines (51 loc) · 1.74 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace App\Security;
use Nette\StaticClass;
/**
* Namespace for scope constants.
*/
class TokenScope
{
use StaticClass;
/**
* The default scope with no additional restrictions.
*/
public const MASTER = "master";
/**
* Read-only scope restricts operations to data retrieval only.
*/
public const READ_ALL = "read-all";
/**
* Used by 3rd party plagiarism detection tools to fetch solutions and feed similarities back.
*/
public const PLAGIARISM = "plagiarism";
/**
* Operations with reference solutions only. Can be used to insert additional solutions (e.g., created by GPT),
* as reference solutions to exercises.
*/
public const REF_SOLUTIONS = "ref-solutions";
/**
* Special scope used in password-retrieval links. The user can only change the local password.
*/
public const CHANGE_PASSWORD = "change-password";
/**
* Special scope used in password verification links. The user can only mark email address verified.
*/
public const EMAIL_VERIFICATION = "email-verification";
/**
* Scope used for 3rd party tools designed to externally manage groups and student memeberships.
*/
public const GROUP_EXTERNAL_ATTRIBUTES = "group-external-attributes";
/**
* Scope for managing the users. Used in case the user data needs to be updated from an external database.
*/
public const USERS = "users";
/**
* Usually used in combination with other scopes. Allows refreshing the token.
*/
public const REFRESH = "refresh";
/**
* Scope for handling handshake and auth-exchange with 3rd party extensions. Temp tokens must use this scope.
*/
public const EXTENSIONS = "extensions";
}