oidc

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssuerForCluster

func IssuerForCluster(ctx context.Context, clt ProxiesGetter) (string, error)

IssuerForCluster returns the issuer URL using the Cluster state.

func IssuerFromPublicAddress

func IssuerFromPublicAddress(addr string) (string, error)

IssuerFromPublicAddress is the address for the AWS OIDC Provider. It must match exactly what was introduced in AWS IAM console when adding the Identity Provider. PublicProxyAddr from `teleport.yaml/proxy` does not come with the desired format: it misses the protocol and has a port This method adds the `https` protocol and removes the port if it is the default one for https (443)

Types

type ProxiesGetter

type ProxiesGetter interface {
	// GetProxies returns a list of registered proxies.
	GetProxies() ([]types.Server, error)
}

ProxyGetter is a service that gets proxies.

Jump to

Keyboard shortcuts

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