authentication

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fiber.Handler

func NewUserAccessTokenAuth

func NewUserAccessTokenAuth() fiber.Handler

func NewUserAccessTokenFormAuth

func NewUserAccessTokenFormAuth(c *fiber.Ctx) error

func NewUserBasicAuth

func NewUserBasicAuth() fiber.Handler

Types

type Auth

type Auth struct {
	Kind            *AuthKind
	Organization    *model.Organization
	User            *model.User
	UserAccessToken *model.UserAccessToken
}

func Get

func Get(c *fiber.Ctx) *Auth

type AuthKind

type AuthKind string
const (
	AuthKindRestApiUserBasic           AuthKind = "REST_API_USER_BASIC"
	AuthKindRestApiUserAccessToken     AuthKind = "REST_API_USER_ACCESS_TOKEN"
	AuthKindRestApiUserAccessTokenForm AuthKind = "REST_API_USER_ACCESS_TOKEN_FORM"
)

Jump to

Keyboard shortcuts

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