struct Swagger::Objects::SecurityScheme

Overview

SecurityScheme Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#componentsSecuritySchemes

Included Modules

Defined in:

swagger/objects/security_scheme.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(auth : Authorization) #

[View source]
def self.new(type : String | Nil = nil, description : String | Nil = nil, name : String | Nil = nil, parameter_location : String | Nil = nil, scheme : String | Nil = nil, bearer_format : String | Nil = nil, flows : Hash(String, OAuth2Flow) | Nil = nil, open_id_connect_url : String | Nil = nil, ref : String | Nil = nil) #

[View source]

Class Method Detail

def self.api_key(name : String, location : String, description : String | Nil = nil) #

[View source]
def self.basic(description : String | Nil = nil) #

[View source]
def self.bearer(description : String | Nil = nil, format : String | Nil = nil) #

[View source]
def self.oauth2(flows : Array(Swagger::OAuth2Flow), description : String | Nil = nil) #

[View source]

Instance Method Detail

def bearer_format : String | Nil #

[View source]
def description : String | Nil #

[View source]
def flows : Hash(String, OAuth2Flow) | Nil #

[View source]
def name : String | Nil #

[View source]
def open_id_connect_url : String | Nil #

[View source]
def parameter_location : String | Nil #

[View source]
def ref : String | Nil #

[View source]
def scheme : String | Nil #

[View source]
def type : String | Nil #

[View source]