gateway

package
v0.3.6-dev13 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInsecureConnection

func CreateInsecureConnection(ctx context.Context, url string) (*ggrpc.ClientConn, error)

func NewAPITokenServer added in v0.3.0

func NewAPITokenServer(
	issuer string,
	signer jwt.JWTSigner,
	userRepo repositories.ReadOnlyUserRepository,
) api.APITokenServer

func NewAuthServer

func NewAuthServer(issuerURL string, oidcServer *auth.Server, userRepo repositories.ReadOnlyUserRepository) *authServer

NewAuthServer creates a new instance of gateway.authServer.

func NewClusterAuthAPIServer

func NewClusterAuthAPIServer(
	issuer string,
	signer jwt.JWTSigner,
	userRepo repositories.ReadOnlyUserRepository,
	clusterRepo repositories.ReadOnlyClusterRepository,
	validity map[string]time.Duration,
) api.ClusterAuthServer

func NewGatewayAPIServer

func NewGatewayAPIServer(authConfig *auth.ClientConfig, client *auth.Client, server *auth.Server, userRepo repositories.ReadOnlyUserRepository) api.GatewayServer

func NewOIDCProviderServer added in v0.3.6

func NewOIDCProviderServer(oidcServer *auth.Server) *oidcProviderServer

NewOIDCProviderServer creates a basic OIDC provider server

Types

type OpenIdConfiguration added in v0.3.0

type OpenIdConfiguration struct {
	Issuer  string `json:"issuer"`
	JwksURL string `json:"jwks_uri"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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