oidcverify

package module
v0.0.0-...-2f31955 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context) (*oidc.IDToken, bool)

func NewOIDCInterceptor

func NewOIDCInterceptor(verifier *oidc.IDTokenVerifier, options ...option) connect.Interceptor

func WithHandler

func WithHandler(handler func(token *oidc.IDToken) error) option

Add a custom handler that gets called with the validated oidc.IDToken

func WithRole

func WithRole(role string) option

Validate that the given role is present in the claims of the oidc.IDToken.

Types

This section is empty.

Jump to

Keyboard shortcuts

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