clientauthentication

package
v0.0.0-...-99ca00c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*clientv1.Client, bool)

FromContext returns the client authentication bound to the context.

func Inject

func Inject(ctx context.Context, client *clientv1.Client) context.Context

Inject client instance in context.

Types

type AuthenticationProcessor

type AuthenticationProcessor interface {
	Authenticate(ctx context.Context, req *clientv1.AuthenticateRequest) (*clientv1.AuthenticateResponse, error)
}

AuthenticationProcessor describes client authentication method contract.

func ClientAttestation

func ClientAttestation(clients storage.ClientReader) AuthenticationProcessor

ClientAttestation authentication method.

func PrivateKeyJWT

func PrivateKeyJWT(clients storage.ClientReader) AuthenticationProcessor

PrivateKeyJWT authentication method.

Jump to

Keyboard shortcuts

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