dex

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DexReverseProxyAddr is the address of the Dex OIDC server, which we run a reverse proxy against
	DexReverseProxyAddr = "http://localhost:5556"
	// DexgRPCAPIAddr is the address to the Dex gRPC API server for managing dex. This is assumed to run
	// locally (as a sidecar)
	DexgRPCAPIAddr = "localhost:5557"
)

Variables

This section is empty.

Functions

func GenerateDexConfigYAML

func GenerateDexConfigYAML(kubeClientset kubernetes.Interface, namespace string) ([]byte, error)

func NewDexHTTPReverseProxy

func NewDexHTTPReverseProxy() func(writer http.ResponseWriter, request *http.Request)

NewDexHTTPReverseProxy returns a reverse proxy to the DEX server. Dex is assumed to be configured with the external issuer URL muxed to the same path configured in server.go. In other words, if ArgoCD API server wants to proxy requests at /api/dex, then the dex config yaml issuer URL should also be /api/dex (e.g. issuer: https://argocd.example.com/api/dex)

Types

type ClientApp

type ClientApp struct {
	// contains filtered or unexported fields
}

func NewClientApp

func NewClientApp(settings *settings.ArgoCDSettings, sessionMgr *session.SessionManager) (*ClientApp, error)

NewClientApp will register the ArgoCD client app in Dex and return an object which has HTTP handlers for handling the HTTP responses for login and callback

func (*ClientApp) HandleCallback

func (a *ClientApp) HandleCallback(w http.ResponseWriter, r *http.Request)

func (*ClientApp) HandleLogin

func (a *ClientApp) HandleLogin(w http.ResponseWriter, r *http.Request)

type DexAPIClient

type DexAPIClient struct {
	api.DexClient
}

func NewDexClient

func NewDexClient() (*DexAPIClient, error)

func (*DexAPIClient) WaitUntilReady

func (d *DexAPIClient) WaitUntilReady()

WaitUntilReady waits until the dex gRPC server is responding

Jump to

Keyboard shortcuts

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