httpmiddleware

package
v0.0.0-...-5292f58 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package httpmiddleware has services middleware utilities that we use across our services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTokenFromBearer

func GetTokenFromBearer(r *http.Request) (string, bool)

GetTokenFromBearer extracts a bearer token from the authorization header.

func WithBearerAuthMiddleware

func WithBearerAuthMiddleware(env env.Env, next http.Handler) http.Handler

WithBearerAuthMiddleware checks for valid bearer auth or rejects the request. This middleware should be use on all services (except auth/api) to validate our tokens.

Types

This section is empty.

Jump to

Keyboard shortcuts

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