-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoauth2_server.routing.yml
164 lines (161 loc) · 5.6 KB
/
oauth2_server.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# OAuth2
oauth2_server.authorize:
path: '/oauth2/authorize'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::authorize'
requirements:
_permission: 'use oauth2 server'
oauth2_server.token:
path: '/oauth2/token'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::token'
requirements:
_permission: 'use oauth2 server'
options:
_auth: ['cookie', 'basic_auth']
oauth2_server.tokens:
path: '/oauth2/tokens/{oauth2_server_token}'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::tokens'
requirements:
_permission: 'use oauth2 server'
oauth2_server.userinfo:
path: '/oauth2/UserInfo'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::userInfo'
options:
_auth: [ 'oauth2' ]
requirements:
_permission: 'use oauth2 server'
oauth2_server.revoke:
path: '/oauth2/revoke'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::revoke'
requirements:
_permission: 'use oauth2 server'
oauth2_server.certificates:
path: '/oauth2/certificates'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::certificates'
requirements:
_access: 'TRUE'
oauth2_server.jwk:
path: '/oauth2/jwk'
defaults:
_controller: '\Drupal\oauth2_server\Controller\OAuth2Controller::jwk'
requirements:
_access: 'TRUE'
# Servers
oauth2_server.overview:
path: '/admin/structure/oauth2-servers'
defaults:
_title: 'OAuth2 Servers'
_entity_list: 'oauth2_server'
requirements:
_permission: 'administer oauth2 server'
entity.oauth2_server.add_form:
path: '/admin/structure/oauth2-servers/add-server'
defaults:
_entity_form: oauth2_server.add
_title: 'Add server'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.enable:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/enable'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerController::serverBypassEnable'
requirements:
_permission: 'administer oauth2 server'
_csrf_token: 'TRUE'
entity.oauth2_server.disable:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/disable'
defaults:
_entity_form: oauth2_server.disable
_title: 'Disable server'
requirements:
_permission: 'administer oauth2 server'
entity.oauth2_server.edit_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/edit'
defaults:
_entity_form: oauth2_server.edit
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.delete_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/delete'
defaults:
_entity_form: oauth2_server.delete
_title: 'Delete server'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
# Scopes
entity.oauth2_server.scopes:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerScopeController::serverScopes'
_title_callback: '\Drupal\oauth2_server\Controller\ServerScopeController::serverScopesTitle'
requirements:
_permission: 'administer oauth2 server'
entity.oauth2_server.scopes.add_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/add-scope'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerScopeController::serverAddScope'
_title: 'Add scope'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.scopes.edit_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/edit'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerScopeController::serverEditScope'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.scopes.delete_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/delete'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerScopeController::serverDeleteScope'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
# Clients
entity.oauth2_server.clients:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerClientController::serverClients'
_title_callback: '\Drupal\oauth2_server\Controller\ServerClientController::serverClientsTitle'
requirements:
_permission: 'administer oauth2 server'
entity.oauth2_server.clients.add_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/add-client'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerClientController::serverAddClient'
_title: 'Add client'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.clients.edit_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/edit'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerClientController::serverEditClient'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE
entity.oauth2_server.clients.delete_form:
path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/delete'
defaults:
_controller: '\Drupal\oauth2_server\Controller\ServerClientController::serverDeleteClient'
requirements:
_permission: 'administer oauth2 server'
options:
_admin_route: TRUE