docs: add configuration variables (#52)

This commit is contained in:
Bobby DeSimone 2019-02-18 18:48:14 -08:00 committed by GitHub
parent 7b1e832b45
commit a31721a239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 246 additions and 14 deletions

View file

@ -3,7 +3,7 @@ import (
"fmt"
"time"
"gopkg.in/square/go-jose.v2"
jose "gopkg.in/square/go-jose.v2"
"gopkg.in/square/go-jose.v2/jwt"
)
@ -40,7 +40,7 @@ type ES256Signer struct {
signer jose.Signer
}
// NewES256Signer creates an Eliptic Curve, NIST P-256 (aka secp256r1 aka prime256v1) JWT signer.
// NewES256Signer creates an Elliptic Curve, NIST P-256 (aka secp256r1 aka prime256v1) JWT signer.
//
// RSA is not supported due to performance considerations of needing to sign each request.
// Go's P-256 is constant-time and SHA-256 is faster on 64-bit machines and immune