-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_oauth.routing.yml
127 lines (114 loc) · 3.55 KB
/
simple_oauth.routing.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# AccessToken routing definition
entity.access_token.canonical:
path: '/admin/content/access_token/{access_token}'
defaults:
_entity_view: 'access_token'
_title: 'Access Token'
requirements:
_entity_access: 'access_token.view'
options:
_admin_route: TRUE
entity.access_token.collection:
path: '/admin/content/access_token'
defaults:
_entity_list: 'access_token'
_title: 'Access Token list'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
base_route: system.admin_content
entity.access_token.add_form:
path: '/admin/content/access_token/add'
defaults:
_entity_form: access_token.add
_title: 'Add Access Token'
requirements:
_permission: 'add access token entities'
options:
_admin_route: TRUE
entity.access_token.edit_form:
path: '/admin/content/access_token/{access_token}/edit'
defaults:
_entity_form: access_token.edit
_title: 'Edit Access Token'
requirements:
_entity_access: 'access_token.edit'
options:
_admin_route: TRUE
entity.access_token.delete_form:
path: '/admin/content/access_token/{access_token}/delete'
defaults:
_entity_form: access_token.delete
_title: 'Delete Access Token'
requirements:
_entity_access: 'access_token.delete'
options:
_admin_route: TRUE
access_token.settings:
path: '/admin/config/people/access_token'
defaults:
_form: '\Drupal\simple_oauth\Entity\Form\AccessTokenSettingsForm'
_title: 'Token Auth Settings'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
base_route: entity.user.admin_form
# AccessTokenResource routing definition
entity.access_token_resource.collection:
path: '/admin/config/people/access_token/access_token_resource'
defaults:
_entity_list: 'access_token_resource'
_title: 'Access Token Resource'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
entity.access_token_resource.add_form:
path: '/admin/config/people/access_token/access_token_resource/add'
defaults:
_entity_form: 'access_token_resource.add'
_title: 'Add Access Token Resource'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
entity.access_token_resource.edit_form:
path: '/admin/config/people/access_token/access_token_resource/{access_token_resource}'
defaults:
_entity_form: 'access_token_resource.edit'
_title: 'Edit Access Token Resource'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
entity.access_token_resource.delete_form:
path: '/admin/config/people/access_token/access_token_resource/{access_token_resource}/delete'
defaults:
_entity_form: 'access_token_resource.delete'
_title: 'Delete Access Token Resource'
requirements:
_permission: 'administer access token entities'
options:
_admin_route: TRUE
user.access_token.collection:
path: '/user/{user}/oauth2-tokens'
defaults:
_controller: 'Drupal\simple_oauth\Controller\AccessTokenUserList::tokenList'
_title: 'OAuth2 Tokens'
requirements:
_permission: 'view own access token entities'
access_token.refresh:
path: '/simple-oauth/refresh'
defaults:
_controller: 'Drupal\simple_oauth\Controller\AccessTokenRefresh::refresh'
requirements:
_permission: 'refresh access token'
access_token.issue:
path: '/simple-oauth'
defaults:
_controller: 'Drupal\simple_oauth\Controller\AccessTokenIssue::issue'
requirements:
_method: 'POST'
_access: 'TRUE'