uaa

package
v0.0.0-...-04fe7af Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

UAA client for token grants and revocation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AuthURL string
	Client  *http.Client
}

Client makes requests to the UAA server at AuthURL

func (*Client) ClientCredentialGrant

func (u *Client) ClientCredentialGrant(clientId, clientSecret string) (string, error)

ClientCredentialGrant requests a token using client_credentials grant type

func (*Client) PasswordGrant

func (u *Client) PasswordGrant(clientId, clientSecret, username, password string) (string, string, error)

PasswordGrant requests an access token and refresh token using password grant type

func (*Client) RefreshTokenGrant

func (u *Client) RefreshTokenGrant(clientId, clientSecret, refreshToken string) (string, string, error)

RefreshTokenGrant requests a new access token and refresh token using refresh_token grant type

func (*Client) RevokeToken

func (u *Client) RevokeToken(accessToken string) error

RevokeToken revokes the given access token

Jump to

Keyboard shortcuts

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