uaa

package
v0.0.0-...-8b5a1e4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DisplayName = "UAA"
View Source
const ProviderName = "uaa"

Variables

View Source
var Scopes = []string{"cloud_controller.read"}

Functions

This section is empty.

Types

type CFSpaceDevelopersResponse

type CFSpaceDevelopersResponse struct {
	NextUrl   string       `json:"next_url"`
	UserInfos []CFUserInfo `json:"resources"`
}

type CFUserInfo

type CFUserInfo struct {
	Metadata struct {
		GUID string `json:"guid"`
	} `json:"metadata"`
}

type OAuthClient

type OAuthClient interface {
	AuthCodeURL(string, ...oauth2.AuthCodeOption) string
	Exchange(context.Context, string) (*oauth2.Token, error)
	Client(context.Context, *oauth2.Token) *http.Client
}

type Provider

type Provider interface {
	PreTokenClient() (*http.Client, error)

	OAuthClient
	Verifier
}

func NewProvider

func NewProvider(
	uaaAuth *db.UAAAuth,
	redirectURL string,
) Provider

type SpaceVerifier

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

func NewSpaceVerifier

func NewSpaceVerifier(
	spaceGUIDs []string,
	cfAPIURL string,
) SpaceVerifier

func (SpaceVerifier) Verify

func (verifier SpaceVerifier) Verify(logger lager.Logger, httpClient *http.Client) (bool, error)

type UAAToken

type UAAToken struct {
	UserID string `json:"user_id"`
}

type Verifier

type Verifier interface {
	Verify(lager.Logger, *http.Client) (bool, error)
}

Jump to

Keyboard shortcuts

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