uaa

package
v0.0.0-...-7799e87 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const UaaAuthScheme = "bearer" // uaa doesn't use "Bearer" (the JWT default), but "bearer"

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareConfig

type MiddlewareConfig struct {
	Skipper middleware.Skipper
}

type TokenKeyResponse

type TokenKeyResponse struct {
	Kid   string `json:"kid"`
	Alg   string `json:"alg"`
	Value string `json:"value"`
	Kty   string `json:"kty"`
	Use   string `json:"use"`
	N     string `json:"n"`
	E     string `json:"e"`
}

@see: http://docs.cloudfoundry.org/api/uaa/version/release-candidate/#token-key-s

type Uaa

type Uaa struct {
	Config    config.UaaConfiguration
	Endpoints *UaaEndpoints

	SigningKeyData TokenKeyResponse
	// contains filtered or unexported fields
}

func GetUaa

func GetUaa(bvConfig config.Configuration) *Uaa

func (*Uaa) AuthMiddleware

func (uaa *Uaa) AuthMiddleware(config MiddlewareConfig) echo.MiddlewareFunc

type UaaEndpoints

type UaaEndpoints struct {
	CheckToken string
	TokenKey   string
}

Jump to

Keyboard shortcuts

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