Skip to content

DereferencedSecurityRequirement_ScopedScheme

mattpolzin edited this page Jun 11, 2021 · 3 revisions

DereferencedSecurityRequirement.ScopedScheme

A combination of a SecurityScheme and the scopes on that scheme that are required.

public struct ScopedScheme: Equatable 

For example, a scheme might define both read and write scopes but a GET operation may only require the read scope.

Inheritance

Equatable

Properties

name

The name used to identify the security scheme in the Component Object.

public let name: String

securityScheme

public let securityScheme: OpenAPI.SecurityScheme

requiredScopes

If the security scheme is of type "oauth2" or "openIdConnect", then requiredScopes is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MUST be empty.

public let requiredScopes: [String]

See Security Requirement Object for more.

Types
Protocols
Global Functions
Extensions
Clone this wiki locally