-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: draft security scheme reference proxy design pattern
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- Loading branch information
Showing
26 changed files
with
174 additions
and
241 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSecurityScheme.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.OpenApi.Interfaces; | ||
|
||
namespace Microsoft.OpenApi.Models.Interfaces; | ||
|
||
/// <summary> | ||
/// Defines the base properties for the security scheme object. | ||
/// This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking. | ||
/// </summary> | ||
public interface IOpenApiSecurityScheme : IOpenApiDescribedElement, IOpenApiSerializable, IOpenApiReadOnlyExtensible | ||
{ | ||
/// <summary> | ||
/// REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect". | ||
/// </summary> | ||
public SecuritySchemeType? Type { get; } | ||
|
||
/// <summary> | ||
/// REQUIRED. The name of the header, query or cookie parameter to be used. | ||
/// </summary> | ||
public string Name { get; } | ||
|
||
/// <summary> | ||
/// REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie". | ||
/// </summary> | ||
public ParameterLocation? In { get; } | ||
|
||
/// <summary> | ||
/// REQUIRED. The name of the HTTP Authorization scheme to be used | ||
/// in the Authorization header as defined in RFC7235. | ||
/// </summary> | ||
public string Scheme { get; } | ||
|
||
/// <summary> | ||
/// A hint to the client to identify how the bearer token is formatted. | ||
/// Bearer tokens are usually generated by an authorization server, | ||
/// so this information is primarily for documentation purposes. | ||
/// </summary> | ||
public string BearerFormat { get; } | ||
|
||
/// <summary> | ||
/// REQUIRED. An object containing configuration information for the flow types supported. | ||
/// </summary> | ||
public OpenApiOAuthFlows Flows { get; } | ||
|
||
/// <summary> | ||
/// REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. | ||
/// </summary> | ||
public Uri OpenIdConnectUrl { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.