authentication

package
v0.0.0-...-b61aaf9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0, Apache-2.0, BSD-2-Clause-Views, + 2 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullTokenValidator

type NullTokenValidator struct{}

func (NullTokenValidator) CheckPublicToken

func (_ NullTokenValidator) CheckPublicToken() error

func (NullTokenValidator) DecodeToken

func (_ NullTokenValidator) DecodeToken(_ string, _ ...string) error

type TokenValidator

type TokenValidator interface {
	DecodeToken(userToken string, desiredPermissions ...string) error
	CheckPublicToken() error
}

func NewAccessTokenValidator

func NewAccessTokenValidator(logger lager.Logger, uaaPublicKey string, uaaKeyFetcher UaaKeyFetcher) TokenValidator

type UaaKeyFetcher

type UaaKeyFetcher interface {
	FetchKey() (string, error)
}

func NewUaaKeyFetcher

func NewUaaKeyFetcher(logger lager.Logger, uaaGetKeyEndpoint string) UaaKeyFetcher

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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