auth

package
v1.2.116 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 Inputs added in v1.2.94

type Inputs struct {
	// Token overrides the default token, if provided. It's unlikely you'll want to provide this.
	Token *serverv1.GetTokenResponse

	// HttpClient is used as the underlying http.client. Connect provides an interface for abstracting over the
	// standard library version of the auth client
	HttpClient connect.HTTPClient

	// Manager holds the credentials for this client to use. Non-optional.
	Config *config.Manager

	Timeout *time.Duration
}

type Manager added in v1.2.94

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

func NewManager added in v1.2.94

func NewManager(ctx context.Context, opts *Inputs) (*Manager, error)

func (*Manager) GetConfig added in v1.2.97

func (r *Manager) GetConfig() *config.Manager

func (*Manager) GetJWT added in v1.2.94

func (r *Manager) GetJWT(
	ctx context.Context,
	newerThan time.Time,
) (*serverv1.GetTokenResponse, error)

Jump to

Keyboard shortcuts

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