Documentation ¶
Index ¶
- Constants
- func CreateInsecureConnection(ctx context.Context, url string) (*ggrpc.ClientConn, error)
- func NewAPITokenServer(issuer string, signer jwt.JWTSigner, ...) api.APITokenServer
- func NewAuthServer(ctx context.Context, issuerURL string, oidcServer *auth.Server, ...) (*authServer, error)
- func NewClusterAuthAPIServer(issuer string, signer jwt.JWTSigner, ...) api.ClusterAuthServer
- func NewGatewayAPIServer(authConfig *auth.ClientConfig, client *auth.Client, server *auth.Server, ...) api.GatewayServer
- func NewInsecureAuthServerClient(ctx context.Context, gatewayAddr string) (*grpc.ClientConn, gateway.GatewayAuthClient, error)
- func NewOIDCProviderServer(oidcServer *auth.Server) *oidcProviderServer
- type OpenIdConfiguration
- type TestEnv
Constants ¶
View Source
const ( RedirectURLHostname = "localhost" RedirectURLPort = ":8000" )
Variables ¶
This section is empty.
Functions ¶
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 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 NewInsecureAuthServerClient ¶ added in v0.3.6
func NewInsecureAuthServerClient(ctx context.Context, gatewayAddr string) (*grpc.ClientConn, gateway.GatewayAuthClient, error)
func NewOIDCProviderServer ¶ added in v0.3.6
NewOIDCProviderServer creates a basic OIDC provider server
Types ¶
type OpenIdConfiguration ¶ added in v0.3.0
type TestEnv ¶ added in v0.3.6
type TestEnv struct { *test.TestEnv JwtTestEnv *jwt.TestEnv ClientAuthConfig *auth.ClientConfig ServerAuthConfig *auth.ServerConfig IdentityProviderURL string ApiListenerAPIServer net.Listener ApiListenerOIDCProviderServer net.Listener HttpClient *http.Client GrpcServer *grpc.Server LocalOIDCProviderServer *oidcProviderServer ClusterRepo repositories.ClusterRepository AdminUser *projections.User TenantAdminUser *projections.User ExistingUser *projections.User NotExistingUser *projections.User PoliciesPath string }
func NewTestEnvWithParent ¶ added in v0.3.6
func (*TestEnv) GetApiAddr ¶ added in v0.3.6
func (*TestEnv) NewOidcClientServer ¶ added in v0.3.6
func (env *TestEnv) NewOidcClientServer(ready chan<- string) (*clientAuth.Server, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.