Documentation ¶
Index ¶
- func DiscoveryEndpoint_Handler() gin.HandlerFunc
- func IntrospectionEndpoint_Handler(authenticateFunc CallerAuthenticateFunc, rejectFunc CallerRejectFunc) gin.HandlerFunc
- func JwksEndpoint_Handler() gin.HandlerFunc
- func RevocationEndpoint_Handler() gin.HandlerFunc
- func TokenEndpoint_Handler(spi spi.TokenReqHandlerSpi) gin.HandlerFunc
- func UserInfoEndpoint_Handler(spi spi.UserInfoReqHandlerSpi) gin.HandlerFunc
- type BaseEndpoint
- func (self *BaseEndpoint) ExtractAccessToken(ctx *gin.Context) string
- func (self *BaseEndpoint) GetAccessTokenValidator(ctx *gin.Context) *web.AccessTokenValidator
- func (self *BaseEndpoint) GetAuthleteApi(ctx *gin.Context) api.AuthleteApi
- func (self *BaseEndpoint) ValidateAccessToken(ctx *gin.Context, scopes []string) (valid bool, validator *web.AccessTokenValidator)
- type CallerAuthenticateFunc
- type CallerRejectFunc
- type DiscoveryEndpoint
- type IntrospectionEndpoint
- type JwksEndpoint
- type RevocationEndpoint
- type TokenEndpoint
- type UserInfoEndpoint
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 ¶
CallerAuthenticateFunc is a function that performs authentication of endpoint callers.
type CallerRejectFunc ¶
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)
Click to show internal directories.
Click to hide internal directories.