auth

package
v0.0.0-...-6863e89 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UAAClient

type UAAClient struct {
	uaaClient.Client
}

UAAClient wraps over the official UAA client implementation.

func NewUAAClient

func NewUAAClient() *UAAClient

NewUAAClient creates a new UAA client. The following environment variables must be set:

  UAA_CLIENT_NAME: Name of client inside UAA (e.g. in CF, this is configured on the UAA job in a BOSH manifest).
	 UAA_CLIENT_SECRET: Secret generated for the client in UAA, similar to above.
	 UAA_ENDPOINT: The FQDN of UAA (e.g. https://uaa.katniss.capi.land)

func (*UAAClient) Fetch

func (u *UAAClient) Fetch() (string, error)

Fetch implements the TokenFetcher interface, fetching tokens from UAA. This stands as an anti-corruption layer over the actual FetchToken call.

Jump to

Keyboard shortcuts

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