endpoint

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoveryEndpoint_Handler

func DiscoveryEndpoint_Handler() gin.HandlerFunc

func IntrospectionEndpoint_Handler

func IntrospectionEndpoint_Handler(
	authenticateFunc CallerAuthenticateFunc, rejectFunc CallerRejectFunc) gin.HandlerFunc

func JwksEndpoint_Handler

func JwksEndpoint_Handler() gin.HandlerFunc

func RevocationEndpoint_Handler

func RevocationEndpoint_Handler() gin.HandlerFunc

func TokenEndpoint_Handler

func TokenEndpoint_Handler(spi spi.TokenReqHandlerSpi) gin.HandlerFunc

func UserInfoEndpoint_Handler

func UserInfoEndpoint_Handler(spi spi.UserInfoReqHandlerSpi) gin.HandlerFunc

Types

type BaseEndpoint

type BaseEndpoint struct {
	Api     api.AuthleteApi
	ReqUtil web.RequestUtility
	ResUtil web.ResponseUtility
}

func (*BaseEndpoint) ExtractAccessToken

func (self *BaseEndpoint) ExtractAccessToken(ctx *gin.Context) string

func (*BaseEndpoint) GetAccessTokenValidator

func (self *BaseEndpoint) GetAccessTokenValidator(ctx *gin.Context) *web.AccessTokenValidator

func (*BaseEndpoint) GetAuthleteApi

func (self *BaseEndpoint) GetAuthleteApi(ctx *gin.Context) api.AuthleteApi

func (*BaseEndpoint) ValidateAccessToken

func (self *BaseEndpoint) ValidateAccessToken(ctx *gin.Context, scopes []string) (
	valid bool, validator *web.AccessTokenValidator)

type CallerAuthenticateFunc

type CallerAuthenticateFunc func(*gin.Context) bool

CallerAuthenticateFunc is a function that performs authentication of endpoint callers.

type CallerRejectFunc

type CallerRejectFunc func(*gin.Context)

CallerRejectFunc is a function that generates a response to reject endpoint callers.

type DiscoveryEndpoint

type DiscoveryEndpoint struct {
	BaseEndpoint
}

func (*DiscoveryEndpoint) Handle

func (self *DiscoveryEndpoint) Handle(ctx *gin.Context)

type IntrospectionEndpoint

type IntrospectionEndpoint struct {
	BaseEndpoint
	Authenticate CallerAuthenticateFunc
	Reject       CallerRejectFunc
}

func (*IntrospectionEndpoint) Handle

func (self *IntrospectionEndpoint) Handle(ctx *gin.Context)

type JwksEndpoint

type JwksEndpoint struct {
	BaseEndpoint
}

func (*JwksEndpoint) Handle

func (self *JwksEndpoint) Handle(ctx *gin.Context)

type RevocationEndpoint

type RevocationEndpoint struct {
	BaseEndpoint
}

func (*RevocationEndpoint) Handle

func (self *RevocationEndpoint) Handle(ctx *gin.Context)

type TokenEndpoint

type TokenEndpoint struct {
	BaseEndpoint
}

func (*TokenEndpoint) Handle

func (self *TokenEndpoint) Handle(ctx *gin.Context, spi spi.TokenReqHandlerSpi)

type UserInfoEndpoint

type UserInfoEndpoint struct {
	BaseEndpoint
}

func (*UserInfoEndpoint) Handle

func (self *UserInfoEndpoint) Handle(ctx *gin.Context, spi spi.UserInfoReqHandlerSpi)

Jump to

Keyboard shortcuts

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