auth

package
v0.0.0-...-6237511 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UserProperty = "user"

UserProperty is a name of the property in the request where the user information stored

Variables

This section is empty.

Functions

func GetAuthorizedUserID

func GetAuthorizedUserID(ctx context.Context) interface{}

GetAuthorizedUserID returns a user ID which generated from the auth server

func NewJWTMiddleware

func NewJWTMiddleware(audience, issuer, jwksURI string, transport http.RoundTripper) *jwtmiddleware.JWTMiddleware

NewJWTMiddleware returns a new jwtmiddleware.JWTMiddleware instance. This middleware uses to looking for the "access_token" in the request header and call to the auth server for validating it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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