dex

package
v2.14.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a Dex client that uses Dex' web UI to acquire an ID token.

func NewClient

func NewClient(clientID string, redirectURI string, providerURI string, log *zap.SugaredLogger) (*Client, error)

NewClient creates a new OIDC client. See the Client struct for definitions on the parameters.

func NewClientFromHelmValues

func NewClientFromHelmValues(valuesFile string, clientID string, log *zap.SugaredLogger) (*Client, error)

NewClientFromHelmValues is a helper for e2e tests, reading the hack/ci/testdata/oauth_values.yaml to provide a matching OIDC client. We use this instead of spreading the client ID etc. in tons of shell scripts and env vars.

func (*Client) Login

func (c *Client) Login(ctx context.Context, login string, password string) (string, error)

Jump to

Keyboard shortcuts

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