authorization

package
v4.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlpJwtAuth

type AlpJwtAuth interface {
	SetupMux(router *mux.Router)
}

func NewJwtAuth

func NewJwtAuth(processor TokenProcessor) AlpJwtAuth

func NewJwtAuthWithAccessControl

func NewJwtAuthWithAccessControl(processor TokenProcessor, authorizer accesscontrol.AlpAuthorizer) AlpJwtAuth

type TokenProcessor

type TokenProcessor interface {
	Process(bearerToken string, r *http.Request) (valid bool, roles []string, err error)
}

func NewKeycloakTokenProcessor

func NewKeycloakTokenProcessor(jwksUrl string) TokenProcessor

Jump to

Keyboard shortcuts

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