security

package
v0.0.0-...-2275712 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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

func AddScope

func AddScope(name string, desc string) scopesOpts

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL