auth

package
v0.0.0-...-8ed7812 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package auth provides an interface for handling authenticated users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() authImpl

New returns a new authImpl.

Types

type Auth

type Auth interface {
	Init(ctx context.Context) error
	LoggedInAs(r *http.Request) (string, error)
	LoginURL(w http.ResponseWriter, r *http.Request) string
}

Auth is an abstraction of the functionality we use out of the go/login package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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