routers

package
v0.0.0-...-8f6ea6c Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(c *gin.Context) (string, error)

func HandleAccessTokenBindingError

func HandleAccessTokenBindingError(c *gin.Context, err error)

Types

type AccessHandler

func NewProviderHandler

func NewProviderHandler() *AccessHandler

func (*AccessHandler) SetupRoutes

func (A *AccessHandler) SetupRoutes(router *gin.RouterGroup)

SetupRoutes Define the (sub)routes handled by JSONDecoratorHandler

type AccessSerializer

type AccessSerializer struct {
	C      *gin.Context
	Access access_object.AccessObject
}

func (*AccessSerializer) Response

func (a *AccessSerializer) Response() api.AccessResponse

type AccessTokenRequestValidator

type AccessTokenRequestValidator struct {
	AccessTokenRequest struct {
		Scope      string                 `json:"scope" binding:"required,validScope,max=512"`
		Identities []string               `json:"identities" binding:"required,unique,gte=1,lte=1000,dive,max=1024"`
		EndDate    string                 `json:"endDate" binding:"omitempty,validEndDateFormat,validEndDateIsFuture,validEndDateIsNotTooLate"`
		Params     map[string]interface{} `json:"params"`
	} `json:"access"`
	AccessTokenModel access_tokens.AccessToken `json:"-"`
}

func NewAccessTokenRequestValidator

func NewAccessTokenRequestValidator() AccessTokenRequestValidator

func (*AccessTokenRequestValidator) Bind

Jump to

Keyboard shortcuts

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