auth

package
v0.0.0-...-7275f5d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Middleware

func Middleware(db *internal.Client) func(http.Handler) http.Handler

Middleware decodes the share session cookie and packs the session into context

func SessionStore

func SessionStore() sessions.Store

func Transport

func Transport(params GraphQLParams) http.Handler

Types

type Authenticator

type Authenticator interface {
	Authenticate(ctx context.Context)
}

type GraphQLParams

type GraphQLParams struct {
	fx.In

	Schema graphql.ExecutableSchema
	Graph  *internal.Client
	Store  sessions.Store
}

Jump to

Keyboard shortcuts

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