Skip to content

Commit dcddf01

Browse files
committed
Add OAuth2MetadataUrl API and provider interface
Expose OAuth2 metadata URL support in the public API: add OpenApiConstants.OAuth2MetadataUrl constant, introduce IOAuth2MetadataProvider with an OAuth2MetadataUrl getter (System.Uri?), and surface OAuth2MetadataUrl on OpenApiSecurityScheme (get/set) and OpenApiSecuritySchemeReference (get). This enables consumers to read/write the OAuth2 metadata URL for security schemes.
1 parent 50ddec5 commit dcddf01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#nullable enable
2+
const Microsoft.OpenApi.OpenApiConstants.OAuth2MetadataUrl = "oauth2MetadataUrl" -> string!
23
const Microsoft.OpenApi.OpenApiConstants.UnevaluatedPropertiesExtension = "x-jsonschema-unevaluatedProperties" -> string!
4+
Microsoft.OpenApi.IOAuth2MetadataProvider
5+
Microsoft.OpenApi.IOAuth2MetadataProvider.OAuth2MetadataUrl.get -> System.Uri?
36
Microsoft.OpenApi.IOpenApiSchemaWithUnevaluatedProperties
47
Microsoft.OpenApi.IOpenApiSchemaWithUnevaluatedProperties.UnevaluatedPropertiesSchema.get -> Microsoft.OpenApi.IOpenApiSchema?
58
Microsoft.OpenApi.OpenApiSchema.UnevaluatedPropertiesSchema.get -> Microsoft.OpenApi.IOpenApiSchema?
69
Microsoft.OpenApi.OpenApiSchema.UnevaluatedPropertiesSchema.set -> void
710
Microsoft.OpenApi.OpenApiSchemaReference.UnevaluatedPropertiesSchema.get -> Microsoft.OpenApi.IOpenApiSchema?
11+
Microsoft.OpenApi.OpenApiSecurityScheme.OAuth2MetadataUrl.get -> System.Uri?
12+
Microsoft.OpenApi.OpenApiSecurityScheme.OAuth2MetadataUrl.set -> void
13+
Microsoft.OpenApi.OpenApiSecuritySchemeReference.OAuth2MetadataUrl.get -> System.Uri?

0 commit comments

Comments
 (0)