dual

package
v0.0.0-...-e495a67 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	Handler  http.Handler
	Ecca     *eccentric.Authentication // details where the register-service is located.
	Template string                    // template to be shown when user is not logged in.
}

dual.AuthHandler accepts both Eccentric Authenticated Client certificates as well as email address and password accounts. It uses session cookies to tell the accountName to the downstream Handelrs.

func (*AuthHandler) ServeHTTP

func (ah *AuthHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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