downstream

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationValidation

type ApplicationValidation struct {
	// contains filtered or unexported fields
}

func NewApplicationValidation

func NewApplicationValidation(oauthApplicationRepo OauthApplicationRepository, sqldb db.DB) *ApplicationValidation

NewApplicationValidation create new downstream plugin to check the validity of application uid and application secret given by the client

func (*ApplicationValidation) Intervene

func (o *ApplicationValidation) Intervene(c *gin.Context, proxyReq *http.Request, r module.RouterPath) error

Intervene current request to check application_uid and application_secret

func (*ApplicationValidation) Name

func (o *ApplicationValidation) Name() string

Name of downstream plugin

type OauthApplicationRepository

type OauthApplicationRepository interface {
	OneByUIDandSecret(ktx kontext.Context, clientUID, clientSecret string, tx db.TX) (entity.OauthApplication, exception.Exception)
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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