authservice

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(user, password, application string) (string, error)

func GetJWTAuthService

func GetJWTAuthService() (string, int, error)

func GetUserID

func GetUserID(claims map[string]interface{}) (id string, err error)

func Middleware

func Middleware() func(http.Handler) http.Handler

func UserIDFromContext

func UserIDFromContext(ctx context.Context) string

func ValidateToken

func ValidateToken(tokenString string) (policy string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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