server

package
v0.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerAuthzInterceptor

func NewServerAuthzInterceptor(
	jwksURL, namespacesKey, namespacesRegex, identifierKey, adminNamespace string,
) *serverAuthzInterceptor

Returns a new ServerAuthzInterceptor for validating authorization tokens in client requests. jwksURL is used to fetch the JWKS for validating incoming keys. This will refresh if a kid is unknown. namespacesKey is the key to a list of namespace claims in the token. namespacesRegex is used for extracting namespace from the claims. For example, given `kaluza:default`, we can usethe regex `kaluza:([1-9a-z-]{1,63})“ to extract the namespace `default` from the claim. identiferKey is the key to a unique identifier in the claim, for example the email. This is for auditing purposes.

Types

type RequestWithMetadata

type RequestWithMetadata interface {
	GetMetadata() *pb.ClientMeta
}

Jump to

Keyboard shortcuts

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