auth

package
v0.0.0-...-8335c39 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AudienceUser    = "user"
	AudienceBuilder = "builder"
)

Audience constants

Variables

View Source
var JWTSigningMethod = jwt.SigningMethodHS512
View Source
var JWTStandardClaims = &jwt.StandardClaims{
	Issuer: "Velocity CI",
}

Functions

func NewJWT

func NewJWT(expiryDuration time.Duration, audience, subject string) (string, time.Time)

func RandomString

func RandomString(n int) string

RandomString returns a securely generated random string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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