auth

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExtraPermissions

func CacheExtraPermissions()

func CacheFirecloudAccounts

func CacheFirecloudAccounts(ctx context.Context) error

func ExtractUserFromContext

func ExtractUserFromContext(ctx *gin.Context) (*auth_models.User, error)

ExtractUserFromContext is the counterpart to the middlewares provided by this package: handlers can call it to extract a User from the context.

func FakeUserMiddleware

func FakeUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc

func GenerateUser

func GenerateUser(t *testing.T, suitable bool) *auth_models.User

func IapUserMiddleware

func IapUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc

func KeepCacheUpdated

func KeepCacheUpdated(ctx context.Context, interval time.Duration)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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