middleware

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAuthentication

func HandleAuthentication(
	userOrgStore core.UserOrgStore,
	logger lumber.Logger,
) gin.HandlerFunc

HandleAuthentication checks if the user is authenticated and belongs the given organization

func HandleAuthenticationSynapse

func HandleAuthenticationSynapse(
	orgStore core.OrganizationStore,
	logger lumber.Logger,
) gin.HandlerFunc

HandleAuthenticationSynapse checks if the synapse is authenticated and belongs the given organization

func HandleJWTVerification

func HandleJWTVerification(
	session core.Session,
	redisDB core.RedisDB,
	logger lumber.Logger,
) gin.HandlerFunc

HandleJWTVerification returns a middleware that checks if the JWT in the request is valid.

func HandleJWTVerificationInternal

func HandleJWTVerificationInternal(internalJWT core.Session, logger lumber.Logger) gin.HandlerFunc

HandleJWTVerificationInternal handles internal-nucleus authentication and authorisation

func HandlePage

func HandlePage() gin.HandlerFunc

HandlePage set page parameters for paginated apis

func HandleRepoValidation

func HandleRepoValidation(
	repostore core.RepoStore,
	restrictRoute bool,
	logger lumber.Logger,
) gin.HandlerFunc

HandleRepoValidation returns a middleware that checks if an active repository is public or private

Types

This section is empty.

Jump to

Keyboard shortcuts

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