uaa

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: Apache-2.0 Imports: 20 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 FileContentsFlag

type FileContentsFlag string

func (*FileContentsFlag) UnmarshalFlag

func (f *FileContentsFlag) UnmarshalFlag(value string) error

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 UAAAuthConfig

type UAAAuthConfig struct {
	ClientID     string `json:"client_id"     long:"client-id"     description:"Application client ID for enabling UAA OAuth."`
	ClientSecret string `json:"client_secret" long:"client-secret" description:"Application client secret for enabling UAA OAuth."`

	AuthURL  string           `json:"auth_url,omitempty"      long:"auth-url"      description:"UAA AuthURL endpoint."`
	TokenURL string           `json:"token_url,omitempty"     long:"token-url"     description:"UAA TokenURL endpoint."`
	CFSpaces []string         `` /* 126-byte string literal not displayed */
	CFURL    string           `json:"cf_url,omitempty"        long:"cf-url"        description:"CF API endpoint."`
	CFCACert FileContentsFlag `json:"cf_ca_cert,omitempty"    long:"cf-ca-cert"    description:"Path to CF PEM-encoded CA certificate file."`
}

func (*UAAAuthConfig) AuthMethod

func (*UAAAuthConfig) AuthMethod(oauthBaseURL string, teamName string) atc.AuthMethod

func (*UAAAuthConfig) IsConfigured

func (auth *UAAAuthConfig) IsConfigured() bool

func (*UAAAuthConfig) Validate

func (auth *UAAAuthConfig) Validate() error

type UAAProvider

type UAAProvider struct {
	*oauth2.Config
	verifier.Verifier
	CFCACert string
}

func (UAAProvider) PreTokenClient

func (p UAAProvider) PreTokenClient() (*http.Client, error)

type UAATeamProvider

type UAATeamProvider struct{}

func (UAATeamProvider) AddAuthGroup

func (UAATeamProvider) AddAuthGroup(group *flags.Group) provider.AuthConfig

func (UAATeamProvider) ProviderConstructor

func (UAATeamProvider) ProviderConstructor(
	config provider.AuthConfig,
	redirectURL string,
) (provider.Provider, bool)

func (UAATeamProvider) UnmarshalConfig

func (UAATeamProvider) UnmarshalConfig(config *json.RawMessage) (provider.AuthConfig, error)

type UAAToken

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

Jump to

Keyboard shortcuts

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