auth

package
v0.0.0-...-8976aea Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 6 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 {
	Client       bca.ClientImplementation
	ClientID     string
	ClientSecret string
}

Client is used to invoke BCA OAuth 2.0 API

func NewClient

func NewClient(config bca.Config) Client

NewClient is used to initialize new auth.Client

func (Client) GetToken

func (c Client) GetToken(ctx context.Context) (bca.AuthToken, error)

GetToken is used to get OAuth 2.0 token

Jump to

Keyboard shortcuts

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