Documentation ¶
Index ¶
- Constants
- func AddScope(name string, desc string) scopesOpts
- type SecurityModelOpts
- func ApiKey(tokenName string) SecurityModelOpts
- func HttpBasic(tokenName string) SecurityModelOpts
- func JWT(tokenName string) SecurityModelOpts
- func OAuth2Code(tokenName string, authorizationUrl string, token string, opts ...scopesOpts) SecurityModelOpts
- func OAuth2Implicit(tokenName string, authorizationUrl string, opts ...scopesOpts) SecurityModelOpts
Constants ¶
View Source
const AuthorizationCodeFlow = "authorizationCode"
View Source
const ClientCredentialsFlow = "clientCredentials"
View Source
const ImplicitFlow = "implicit"
View Source
const PasswordFlow = "password"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecurityModelOpts ¶
type SecurityModelOpts func(*openapi3.SecurityScheme) string
func ApiKey ¶
func ApiKey(tokenName string) SecurityModelOpts
func HttpBasic ¶
func HttpBasic(tokenName string) SecurityModelOpts
func JWT ¶
func JWT(tokenName string) SecurityModelOpts
func OAuth2Code ¶
func OAuth2Code(tokenName string, authorizationUrl string, token string, opts ...scopesOpts) SecurityModelOpts
scopes: map[value]some info
func OAuth2Implicit ¶
func OAuth2Implicit(tokenName string, authorizationUrl string, opts ...scopesOpts) SecurityModelOpts
Click to show internal directories.
Click to hide internal directories.