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 ¶
func NewDexClient ¶
func NewDexClient() (*DexAPIClient, error)
func (*DexAPIClient) WaitUntilReady ¶
func (d *DexAPIClient) WaitUntilReady()
WaitUntilReady waits until the dex gRPC server is responding
Click to show internal directories.
Click to hide internal directories.