glueauth

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const XGlueAuthentication = "X-Glue-Authentication"

Variables

View Source
var ErrUnauthorized = errors.New("unauthorized")

Functions

func Require

func Require(next box.H) box.H

Types

type GlueAuthentication

type GlueAuthentication struct {
	Session struct {
		ID string `json:"id"`
	} `json:"session"`
	User struct {
		ID      string `json:"id"`
		Nick    string `json:"nick"`
		Picture string `json:"picture"`
		Email   string `json:"email"`
	} `json:"user"`
}

func GetAuth

func GetAuth(ctx context.Context) *GlueAuthentication

Jump to

Keyboard shortcuts

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