examples

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestSecuredURL    = "/api/v1/secured"
	TestEntryPointURL = "/login"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestController

type TestController struct{}

func (*TestController) Mappings

func (c *TestController) Mappings() []web.Mapping

func (*TestController) Secured

func (c *TestController) Secured(_ context.Context, _ *http.Request) (interface{}, error)

type TestSecConfigurer

type TestSecConfigurer struct{}

func (*TestSecConfigurer) Configure

func (c *TestSecConfigurer) Configure(ws security.WebSecurity)

type TestTarget

type TestTarget struct{}

func (*TestTarget) DoSomethingRequiringSecurity

func (t *TestTarget) DoSomethingRequiringSecurity(ctx context.Context) error

func (*TestTarget) DoSomethingWithinSecurityScope

func (t *TestTarget) DoSomethingWithinSecurityScope(ctx context.Context) error

Jump to

Keyboard shortcuts

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