dex

package
v1.2.46 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 9 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 represent a client wrapper for Dex

func NewClient

func NewClient(opts *Options) (*Client, error)

NewClient creates a new Dex client

func (*Client) CreateClient

func (c *Client) CreateClient(ctx context.Context, redirectUris []string, trustedPeers []string,
	public bool, name string, logoURL string) (*api.Client, error)

CreateClient a new OIDC client in Dex

func (*Client) DeleteClient

func (c *Client) DeleteClient(ctx context.Context, id string) error

DeleteClient deletes the client with given Id from Dex

func (*Client) UpdateClient

func (c *Client) UpdateClient(ctx context.Context, clientID string, redirectUris []string,
	trustedPeers []string, public bool, name string, logoURL string) error

UpdateClient updates an already registered OIDC client

type Options added in v1.2.0

type Options struct {
	// HostAndPort host name and port of gRPC server
	HostAndPort string
	// ClientCrt TLS certificate for gRPC client
	ClientCrt string
	// ClientKey TLS certificate key for gRPC client
	ClientKey string
	// ClientCA self signed CA certificate for gRPC TLS connection
	ClientCA string
}

Options keeps some configuration options for Dex client

Jump to

Keyboard shortcuts

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