auth

package
v0.0.0-...-33050dc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTokenFromContext

func GetTokenFromContext(ctx context.Context, jwtPK *rsa.PublicKey) (*jwt.Token, bool)

GetTokenFromContext return one jwt.Token from Context or false if the token is not present or is invalid.

func GetUserIDAuthenticated

func GetUserIDAuthenticated(ctx context.Context, jwtPK *rsa.PublicKey) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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