uaatokenfetcher

package
v0.0.0-...-ff51d6a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 10 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
}

func NewClient

func NewClient(uaaUrl string) (*Client, error)

func (*Client) GetAuthToken

func (c *Client) GetAuthToken(username, password string, insecureSkipVerify bool) (string, error)

func (*Client) GetAuthTokenWithExpiresIn

func (c *Client) GetAuthTokenWithExpiresIn(username, password string, insecureSkipVerify bool) (string, int, error)

func (*Client) GetRefreshToken

func (c *Client) GetRefreshToken(clientID, refreshToken string, insecureSkipVerify bool) (string, string, error)

func (*Client) TokenIsAuthorized

func (c *Client) TokenIsAuthorized(username, password, token, client_id string, insecureSkipVerify bool) (bool, error)

type UAATokenFetcher

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

func New

func New(uaaUrl string, username string, password string, sslSkipVerify bool, logger *gosteno.Logger) *UAATokenFetcher

func (*UAATokenFetcher) FetchAuthToken

func (uaa *UAATokenFetcher) FetchAuthToken() string

Jump to

Keyboard shortcuts

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