uaa

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Unlicense Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	AuthNoop = iota
	AuthClientCredentials
	AuthPassword
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

type AuthResponse struct {
	AccessToken  string
	RefreshToken string
	TTL          time.Duration
}

type Client

type Client struct {
	URL               string
	SkipTLSValidation bool
	CACerts           *x509.CertPool
}

func (*Client) ClientCredentials

func (c *Client) ClientCredentials(
	clientID,
	clientSecret string) (*AuthResponse, error)

func (*Client) Password

func (c *Client) Password(
	clientID,
	clientSecret,
	username,
	password string) (*AuthResponse, error)

func (*Client) Refresh

func (c *Client) Refresh(
	clientID,
	clientSecret,
	refreshToken string) (*AuthResponse, error)

Jump to

Keyboard shortcuts

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