authentication

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(id string, authServiceURL string, authClient string) (token *api.Token, err error)

GenerateToken connects to the authorization service and retrieves a new token

func Revoke

func Revoke(token string, authServiceURL string, authClient string) error

Revoke marks the current token as invalid

func ValidateToken

func ValidateToken(token string, authServiceURL string, authClient string) (id string, err error)

ValidateToken sends a request to the auth-service and validates that the token is geniune: not in black list and it hasn't expired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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