middleware

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeAuthEndpointMiddleware

func NewFakeAuthEndpointMiddleware() endpoint.Middleware

Can be used for development/testing. Simply provide a non-empty user id and any password in the http authorization header using the basic authentication format (i.e. "Basic base64Encode(userId:password)"). Make sure to use the "PopulateRequestContext" RequestFunc from the go-kit/kit/transport/http package as a "ServerBefore" option when creating http handlers.

func NewFirebaseAuthEndpointMiddleware

func NewFirebaseAuthEndpointMiddleware(authClient *fbauth.Client, requireVerifiedEmail bool) endpoint.Middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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