apiroutes

package
v0.0.0-...-5ba556e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminOnlyAccessRole

func AdminOnlyAccessRole(c *gin.Context)

AdminOnlyAccessRole allows only admin users to access this role

func ReadOnlyAccessRole

func ReadOnlyAccessRole(c *gin.Context)

ReadOnlyAccessRole allows standard, admin and auditor roles to access it

func UserInfoRouteType

func UserInfoRouteType(c *gin.Context)

UserInfoRouteType is a special route that validates if a user is authenticated and registered or if it's an authenticated by validating in the Oauth2 user info endpoint

Types

type Router

type Router struct {
	*gin.RouterGroup
	// contains filtered or unexported fields
}

func New

func New(route *gin.RouterGroup, provider *idp.Provider, grpcURL, registeredApiKey string) *Router

func (*Router) AuthMiddleware

func (r *Router) AuthMiddleware(c *gin.Context)

Jump to

Keyboard shortcuts

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