auth

package
v0.0.0-...-1ac4089 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause-Clear Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JTILength            = 14
	JWTExpirationMinutes = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken string

type AccessTokenSource

type AccessTokenSource interface {
	AccessToken() (AccessToken, error)
	// probably better to use `crypto.AsymDecryption` here than roll our own since this should be
	// more closely linked to what happens in KAS in terms of crypto params
	MakeToken(func(jwk.Key) ([]byte, error)) ([]byte, error)
}

type TokenAddingInterceptor

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

func NewTokenAddingInterceptor

func NewTokenAddingInterceptor(t AccessTokenSource) TokenAddingInterceptor

func (TokenAddingInterceptor) AddCredentials

func (i TokenAddingInterceptor) AddCredentials(ctx context.Context,
	method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error

func (TokenAddingInterceptor) GetDPoPToken

func (i TokenAddingInterceptor) GetDPoPToken(path, method, accessToken string) (string, error)

Jump to

Keyboard shortcuts

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