uaago

package module
v0.0.0-...-8136b7b Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 58

README

uaago

Golang client for UAA.

Usage

See samples.

You can run the auth token sample like this:

$ go build -o bin/auth_token samples/auth-token/main.go
$ ./bin/auth_token [URL] [USER] [PASS]

You can run the refresh token sample like this:

$ go build -o bin/refresh_token samples/refresh-token/main.go
$ ./bin/refresh_token [URL] [CLIENT_ID] [EXISTING_REFRESH_TOKEN]

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)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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