auth

package
v0.0.0-...-6076360 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWS

func CreateJWS(object interface{}) (string, error)

func CreateJWT

func CreateJWT(
	id string, sub string,
	aud string, iss string,
	exp time.Duration) (string, error)

func CreatePrivateKey

func CreatePrivateKey() *rsa.PrivateKey

func CreatePrivateKeySigner

func CreatePrivateKeySigner(privateKey *rsa.PrivateKey) jose.Signer

func VerifyJWS

func VerifyJWS(rawJWS string) ([]byte, error)

func VerifyJWT

func VerifyJWT(rawJWT string) (bool, error)

Types

type JwsPayload

type JwsPayload struct {
	Name      string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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