gateway

package
v0.3.6-dev34 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 26 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(ctx context.Context, issuerURL string, oidcServer *auth.Server, policiesPath string, roleBindingRepo repositories.UserRoleBindingRepository) (*authServer, error)

NewAuthServer creates a new instance of gateway.authServer.

func NewAuthServerClient

func NewAuthServerClient(ctx context.Context, gatewayAddr string) (*grpc.ClientConn, gateway.GatewayAuthClient, error)

func NewClusterAuthAPIServer

func NewClusterAuthAPIServer(
	issuer string,
	signer jwt.JWTSigner,
	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