@@ -263,7 +263,6 @@ pub(crate) async fn post(
263
263
metadata. application_type . clone ( ) ,
264
264
//&metadata.response_types(),
265
265
metadata. grant_types ( ) . to_vec ( ) ,
266
- metadata. contacts . clone ( ) . unwrap_or_default ( ) ,
267
266
metadata
268
267
. client_name
269
268
. clone ( )
@@ -362,7 +361,6 @@ mod tests {
362
361
let request =
363
362
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
364
363
"application_type" : "web" ,
365
- "contacts" : [ "[email protected] " ] ,
366
364
"client_uri" : "https://example.com/" ,
367
365
"redirect_uris" : [ "http://this-is-insecure.com/" ] ,
368
366
} ) ) ;
@@ -375,7 +373,6 @@ mod tests {
375
373
// Incoherent response types
376
374
let request =
377
375
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
378
- "contacts" : [ "[email protected] " ] ,
379
376
"client_uri" : "https://example.com/" ,
380
377
"redirect_uris" : [ "https://example.com/" ] ,
381
378
"response_types" : [ "id_token" ] ,
@@ -390,7 +387,6 @@ mod tests {
390
387
// Using a public suffix
391
388
let request =
392
389
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
393
- "contacts" : [ "[email protected] " ] ,
394
390
"client_uri" : "https://github.io/" ,
395
391
"redirect_uris" : [ "https://github.io/" ] ,
396
392
"response_types" : [ "code" ] ,
@@ -410,7 +406,6 @@ mod tests {
410
406
// Using a public suffix in a translated URL
411
407
let request =
412
408
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
413
- "contacts" : [ "[email protected] " ] ,
414
409
"client_uri" : "https://example.com/" ,
415
410
"client_uri#fr-FR" : "https://github.io/" ,
416
411
"redirect_uris" : [ "https://example.com/" ] ,
@@ -438,7 +433,6 @@ mod tests {
438
433
// secret
439
434
let request =
440
435
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
441
- "contacts" : [ "[email protected] " ] ,
442
436
"client_uri" : "https://example.com/" ,
443
437
"redirect_uris" : [ "https://example.com/" ] ,
444
438
"response_types" : [ "code" ] ,
@@ -455,7 +449,6 @@ mod tests {
455
449
// return a client secret
456
450
let request =
457
451
Request :: post ( mas_router:: OAuth2RegistrationEndpoint :: PATH ) . json ( serde_json:: json!( {
458
- "contacts" : [ "[email protected] " ] ,
459
452
"client_uri" : "https://example.com/" ,
460
453
"redirect_uris" : [ "https://example.com/" ] ,
461
454
"response_types" : [ "code" ] ,
0 commit comments