uaa

package
v0.0.0-...-f08e3d1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

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

func NewFailure

func NewFailure(code int, message []byte) Failure

func (Failure) Code

func (failure Failure) Code() int

func (Failure) Error

func (failure Failure) Error() string

func (Failure) Message

func (failure Failure) Message() string

type TokenLoader

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

func NewTokenLoader

func NewTokenLoader(uaa uaaClient) *TokenLoader

func (*TokenLoader) Load

func (t *TokenLoader) Load(uaaHost string) (string, error)

type TokenValidator

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

func NewTokenValidator

func NewTokenValidator(logger lager.Logger, keysFetcher keysFetcher) *TokenValidator

func (*TokenValidator) LoadSigningKeys

func (v *TokenValidator) LoadSigningKeys() error

func (*TokenValidator) Parse

func (v *TokenValidator) Parse(rawToken string) (*jwt.Token, error)

type User

type User struct {
	ID     string
	Emails []string
}

type UserFinder

type UserFinder struct {
	ID      string
	Secret  string
	Users   userGetter
	Clients tokenGetter
}

func NewUserFinder

func NewUserFinder(id, secret string, users userGetter, clients tokenGetter) UserFinder

func (UserFinder) Exists

func (u UserFinder) Exists(guid string) (bool, error)

type ZonedUAAClient

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

func NewZonedUAAClient

func NewZonedUAAClient(clientID, clientSecret string, verifySSL bool, validator *TokenValidator) (client ZonedUAAClient)

func (ZonedUAAClient) AllUsers

func (z ZonedUAAClient) AllUsers(token string) ([]User, error)

func (ZonedUAAClient) GetClientToken

func (z ZonedUAAClient) GetClientToken(host string) (string, error)

func (ZonedUAAClient) GetTokenKey

func (z ZonedUAAClient) GetTokenKey(uaaHost string) (string, error)

func (ZonedUAAClient) UsersEmailsByIDs

func (z ZonedUAAClient) UsersEmailsByIDs(token string, ids ...string) ([]User, error)

func (ZonedUAAClient) UsersGUIDsByScope

func (z ZonedUAAClient) UsersGUIDsByScope(token string, scope string) ([]string, error)

Jump to

Keyboard shortcuts

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