oauth2

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatekeeper

type Gatekeeper struct {
	// contains filtered or unexported fields
}

func NewGatekeeper

func NewGatekeeper(flow openapi.SecuritySchemeFlow, optionalPermTag ...bool) *Gatekeeper

OAuth 2.0 (Authorization Code flow)

func (*Gatekeeper) OptionalPermTag

func (g *Gatekeeper) OptionalPermTag() bool

OptionalPermTag implements security.Gatekeeper.

func (*Gatekeeper) PreRequest added in v0.15.0

func (g *Gatekeeper) PreRequest(c *fasthttp.RequestCtx) error

PreRequest implements security.Gatekeeper.

func (*Gatekeeper) SecurityRequirement

func (s *Gatekeeper) SecurityRequirement(perm security.Permission) openapi.SecurityRequirement

OperationSecurityDocs implements security.Scheme.

func (*Gatekeeper) SecurityScheme

func (s *Gatekeeper) SecurityScheme() openapi.SecurityScheme

SecurityDocs implements security.Scheme.

func (*Gatekeeper) UserRoles

func (s *Gatekeeper) UserRoles(c *fasthttp.RequestCtx) (roles []string, err error)

UserRoles implements security.Scheme.

Jump to

Keyboard shortcuts

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