auth

package
v0.0.0-...-2992433 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAuthenticationMiddleware

func BuildAuthenticationMiddleware() *jwtmiddleware.JWTMiddleware

BuildAuthenticationMiddleware creates a middleware function that can be used to protect any HTTP endpoint

func GetUserIDFromContext

func GetUserIDFromContext(ctx context.Context) (*string, error)

GetUserIDFromContext retrieves the User ID from a given JWT access token

Types

This section is empty.

Jump to

Keyboard shortcuts

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