Documentation ¶
Index ¶
- func HandleAuthentication(userOrgStore core.UserOrgStore, logger lumber.Logger) gin.HandlerFunc
- func HandleAuthenticationSynapse(orgStore core.OrganizationStore, logger lumber.Logger) gin.HandlerFunc
- func HandleJWTVerification(session core.Session, redisDB core.RedisDB, logger lumber.Logger) gin.HandlerFunc
- func HandleJWTVerificationInternal(internalJWT core.Session, logger lumber.Logger) gin.HandlerFunc
- func HandlePage() gin.HandlerFunc
- func HandleRepoValidation(repostore core.RepoStore, restrictRoute bool, logger lumber.Logger) gin.HandlerFunc
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.