dex

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 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 ChallengeResponse

type ChallengeResponse struct {
	Challenge string `json:"challenge"`
	State     string `json:"state"`
}

ChallengeResponse represents the response from the generate challenge endpoint.

type Client

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

Client is a client for interacting with the Dex JWT server.

func NewClient

func NewClient(settings *config.Settings) (*Client, error)

NewClient creates a new Dex client.

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context, devLicense string) (string, error)

GetToken retrieves a developer license token from the Dex server with context.

type TokenResponse

type TokenResponse struct {
	AccessToken string `json:"access_token"`
}

TokenResponse represents the response from the submit challenge endpoint.

Jump to

Keyboard shortcuts

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