authentication

package
v6.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: Apache-2.0 Imports: 8 Imported by: 115

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRepository

type AuthenticationRepository interface {
	RefreshAuthToken() (updatedToken string, apiErr error)
	Authenticate(credentials map[string]string) (apiErr error)
	GetLoginPromptsAndSaveUAAServerURL() (map[string]configuration.AuthPrompt, error)
}

type LoginResource

type LoginResource struct {
	Prompts map[string][]string
	Links   map[string]string
}

type TokenRefresher

type TokenRefresher interface {
	RefreshAuthToken() (updatedToken string, apiErr error)
}

type UAAAuthenticationRepository

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

func NewUAAAuthenticationRepository

func NewUAAAuthenticationRepository(gateway net.Gateway, config configuration.ReadWriter) (uaa UAAAuthenticationRepository)

func (UAAAuthenticationRepository) Authenticate

func (uaa UAAAuthenticationRepository) Authenticate(credentials map[string]string) (apiErr error)

func (UAAAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL

func (uaa UAAAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]configuration.AuthPrompt, apiErr error)

func (UAAAuthenticationRepository) RefreshAuthToken

func (uaa UAAAuthenticationRepository) RefreshAuthToken() (string, error)

Jump to

Keyboard shortcuts

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