auth

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	// Verify takes request and returns nil if allowed, err otherwise
	Verify(r *http.Request) error
}

type KeycloakClaim

type KeycloakClaim struct {
	RealmAccess RealmAccessSubclaim `json:"realm_access"`
	jwt.StandardClaims
}

type KeycloakVerifier

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

func NewKeycloakVerifier

func NewKeycloakVerifier(httpjwks bool, jwksURL string, redirectURL string) (*KeycloakVerifier, error)

func (*KeycloakVerifier) Verify

func (v *KeycloakVerifier) Verify(r *http.Request) error

type NullVerifier

type NullVerifier struct{}

func NewNullVerifier

func NewNullVerifier() *NullVerifier

func (*NullVerifier) Verify

func (v *NullVerifier) Verify(r *http.Request) error

type RealmAccessSubclaim

type RealmAccessSubclaim struct {
	Roles []string `json:"roles"`
}

Jump to

Keyboard shortcuts

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