File tree Expand file tree Collapse file tree 3 files changed +5
-103
lines changed Expand file tree Collapse file tree 3 files changed +5
-103
lines changed Original file line number Diff line number Diff line change @@ -372,8 +372,6 @@ policy:
372
372
allow_insecure_uris : false
373
373
# don't require clients to provide a client_uri. default: false
374
374
allow_missing_client_uri : false
375
- # don't require clients to provide a contacts field. default: false
376
- allow_missing_contacts : false
377
375
378
376
# Restrict emails on registration to a specific domain
379
377
# Items in this array are evaluated as a glob
Original file line number Diff line number Diff line change @@ -96,19 +96,6 @@ violation[{"msg": "logo_uri not on the same host as the client_uri"}] {
96
96
not host_matches_client_uri (input.client_metadata.logo_uri)
97
97
}
98
98
99
- violation[{" msg" : " missing contacts" }] {
100
- not data.client_registration.allow_missing_contacts
101
- not input.client_metadata.contacts
102
- }
103
-
104
- violation[{" msg" : " invalid contacts" }] {
105
- not is_array (input.client_metadata.contacts)
106
- }
107
-
108
- violation[{" msg" : " empty contacts" }] {
109
- count (input.client_metadata.contacts) == 0
110
- }
111
-
112
99
# If the grant_types is missing, we assume it is authorization_code
113
100
uses_grant_type (" authorization_code" ) {
114
101
not input.client_metadata.grant_types
@@ -143,11 +130,11 @@ violation[{"msg": "missing redirect_uris"}] {
143
130
not input.client_metadata.redirect_uris
144
131
}
145
132
146
- violation[{" msg" : " invalid redirect_uris" }] {
133
+ violation[{" msg" : " invalid redirect_uris: it must be an array " }] {
147
134
not is_array (input.client_metadata.redirect_uris)
148
135
}
149
136
150
- violation[{" msg" : " empty redirect_uris" }] {
137
+ violation[{" msg" : " invalid redirect_uris: it must have at least one redirect_uri " }] {
151
138
requires_redirect_uris
152
139
count (input.client_metadata.redirect_uris) == 0
153
140
}
You can’t perform that action at this time.
0 commit comments