oidc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor(t Authenticator) grpc.StreamServerInterceptor

StreamServerInterceptor returns a gRPC stream server interceptor that wraps the incoming stream with an authenticator.

func UnaryServerInterceptor

func UnaryServerInterceptor(t Authenticator) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a gRPC unary server interceptor that performs authentication using the provided Authenticator.

Types

type Authenticator added in v0.4.6

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

Authenticator - Interface for oidc authenticator

type Authn added in v0.4.6

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

Authn - Oidc verifier structure

func NewOidcAuthn

func NewOidcAuthn(_ context.Context, cfg config.Oidc) (*Authn, error)

NewOidcAuthn - Create new Oidc verifier

func (*Authn) Authenticate added in v0.4.6

func (t *Authn) 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