oidc

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor(t OidcAuthenticator) grpc.StreamServerInterceptor

StreamServerInterceptor -

func UnaryServerInterceptor

func UnaryServerInterceptor(t OidcAuthenticator) grpc.UnaryServerInterceptor

UnaryServerInterceptor -

Types

type OidcAuthenticator

type OidcAuthenticator interface {
	Authenticate(ctx context.Context) error
}

OidcAuthenticator - Interface for oidc authenticator

type OidcAuthn

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

OidcAuthn - Oidc verifier structure

func NewOidcAuthn

func NewOidcAuthn(ctx context.Context, cfg config.Oidc) (*OidcAuthn, error)

NewOidcAuthn - Create new Oidc verifier

func (*OidcAuthn) Authenticate

func (t *OidcAuthn) Authenticate(ctx context.Context) error

Authenticate - Checking whether JWT token is signed by the provider and is valid

Jump to

Keyboard shortcuts

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