claimsprincipal

package
v0.1.278 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevelopmentMiddlewareUsingClaimsMap

func DevelopmentMiddlewareUsingClaimsMap(entrypointClaimsMap map[string]*middleware_oidc.EntryPointConfig) echo.MiddlewareFunc

DevelopmentMiddlewareUsingClaimsMap use this in development if you are making an api only service it literally just adds the claims to the principal that the api demands it has to be authorized.

func FinalAuthVerificationMiddlewareUsingClaimsMap

func FinalAuthVerificationMiddlewareUsingClaimsMap(entrypointClaimsMap map[string]*middleware_oidc.EntryPointConfig, enableZeroTrust bool) echo.MiddlewareFunc

FinalAuthVerificationMiddlewareUsingClaimsMap ...

Types

type EntryPointConfigEx

type EntryPointConfigEx struct {
	middleware_oidc.EntryPointConfig
	OnUnauthorizedAction OnUnauthorizedAction
}

EntryPointConfigEx ...

type OnUnauthorizedAction

type OnUnauthorizedAction int64

OnUnauthorizedAction ...

const (
	OnUnauthorizedAction_Unspecified OnUnauthorizedAction = 0
	OnUnauthorizedAction_Redirect                         = 1
)

Jump to

Keyboard shortcuts

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