middleware

package
v0.0.0-...-e00347c Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiKeyMiddleware

func ApiKeyMiddleware() fiber.Handler

ApiKeyMiddleware authenticates requests using a predefined API key.

func RoleInstanceMiddleware

func RoleInstanceMiddleware(FirebaseApp *firebase.App) fiber.Handler

RoleInstanceMiddleware checks if the user is an admin and if they belong to the instance specified in the URL.

func SuperAdminAuthMiddleware

func SuperAdminAuthMiddleware(FirebaseApp *firebase.App) fiber.Handler

SuperAdminAuthMiddleware checks to see if the user has the super admin claim set and is instance admin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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