@@ -6,10 +6,14 @@ import { ServerLifecycle } from './helpers/serverLifecycle.js';
66import { SpecReferences } from './spec-references.js' ;
77import { Request , Response } from 'express' ;
88
9- export class AuthBasicDCRScenario implements Scenario {
10- name = 'auth/basic-dcr' ;
11- description =
12- 'Tests Basic OAuth flow with DCR, PRM at path-based location, OAuth metadata at root location, and no scopes required' ;
9+ export class AuthMetadataDefaultScenario implements Scenario {
10+ name = 'auth/metadata-default' ;
11+ description = `Tests Basic OAuth metadata discovery flow.
12+
13+ **Registration:** via DCR
14+ **PRM:** at path-based location (root returns 404)
15+ **OAuth metadata:** at root oauth-authorization-server path
16+ ` ;
1317 private authServer = new ServerLifecycle ( ) ;
1418 private server = new ServerLifecycle ( ) ;
1519 private checks : ConformanceCheck [ ] = [ ] ;
@@ -92,13 +96,13 @@ export class AuthBasicDCRScenario implements Scenario {
9296 }
9397}
9498
95- export class AuthBasicMetadataVar1Scenario implements Scenario {
96- name = 'auth/basic- metadata-var1' ;
97- description = `
98- Tests Basic OAuth flow with:
99- Registration: via DCR
100- PRM: At the path-based location (not in WWW-authenticate )
101- OAuth metadata: at OpenID discovery path
99+ export class AuthMetadataVar1Scenario implements Scenario {
100+ name = 'auth/metadata-var1' ;
101+ description = `Tests Basic OAuth metadata discovery flow.
102+
103+ ** Registration:** via DCR
104+ ** PRM:** at root location (not in WWW-Authenticate )
105+ ** OAuth metadata:** at root openid-configuration path
102106` ;
103107 private authServer = new ServerLifecycle ( ) ;
104108 private server = new ServerLifecycle ( ) ;
@@ -156,10 +160,14 @@ OAuth metadata: at OpenID discovery path
156160 }
157161}
158162
159- export class AuthBasicMetadataVar2Scenario implements Scenario {
160- name = 'auth/basic-metadata-var2' ;
161- description =
162- 'Tests Basic OAuth flow with DCR, PRM at root location, OAuth metadata at path-based OAuth discovery path' ;
163+ export class AuthMetadataVar2Scenario implements Scenario {
164+ name = 'auth/metadata-var2' ;
165+ description = `Tests Basic OAuth metadata discovery flow.
166+
167+ **Registration:** via DCR
168+ **PRM:** at root location
169+ **OAuth metadata:** at path-based openid-configuration path (/tenant1)
170+ ` ;
163171 private authServer = new ServerLifecycle ( ) ;
164172 private server = new ServerLifecycle ( ) ;
165173 private checks : ConformanceCheck [ ] = [ ] ;
@@ -236,10 +244,14 @@ export class AuthBasicMetadataVar2Scenario implements Scenario {
236244 }
237245}
238246
239- export class AuthBasicMetadataVar3Scenario implements Scenario {
240- name = 'auth/basic-metadata-var3' ;
241- description =
242- 'Tests Basic OAuth flow with DCR, PRM at custom location listed in WWW-Authenticate header, OAuth metadata is at nested OpenID discovery path, and no scopes required' ;
247+ export class AuthMetadataVar3Scenario implements Scenario {
248+ name = 'auth/metadata-var3' ;
249+ description = `Tests Basic OAuth metadata discovery flow.
250+
251+ **Registration:** via DCR
252+ **PRM:** at custom path (via resource_metadata in WWW-Authenticate)
253+ **OAuth metadata:** at path-based openid-configuration path (/tenant1)
254+ ` ;
243255 private authServer = new ServerLifecycle ( ) ;
244256 private server = new ServerLifecycle ( ) ;
245257 private checks : ConformanceCheck [ ] = [ ] ;
0 commit comments