You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// TEMPORARY compatibility interface for accessing OAuth2 metadata URL support introduced for OpenAPI 3.2.
7
+
/// This exists to avoid adding new members to <see cref="IOpenApiSecurityScheme"/> in a minor release, which is binary breaking for existing compiled consumers.
8
+
/// </summary>
9
+
// TODO: Remove this temporary interface and collapse this member into IOpenApiSecurityScheme in the next major version.
10
+
publicinterfaceIOAuth2MetadataProvider
11
+
{
12
+
/// <summary>
13
+
/// URL to the OAuth2 Authorization Server Metadata document (RFC 8414).
14
+
/// Note: This field is supported in OpenAPI 3.2.0+ only.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSecurityScheme.cs
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,15 @@ namespace Microsoft.OpenApi;
5
5
/// <summary>
6
6
/// Defines the base properties for the security scheme object.
7
7
/// This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking.
8
+
///
9
+
/// To preserve binary compatibility in minor releases, properties introduced after this interface shipped may be exposed through temporary companion interfaces.
10
+
/// For OAuth2 metadata URL support, cast to <see cref="IOAuth2MetadataProvider"/>:
11
+
/// <code>
12
+
/// if (securityScheme is IOAuth2MetadataProvider provider)
13
+
/// {
14
+
/// var oauth2MetadataUrl = provider.OAuth2MetadataUrl;
0 commit comments