add more docs

This commit is contained in:
AJ ONeal 2019-02-28 20:47:08 -07:00
parent 6769ef90c3
commit ed2297e2ad
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,11 @@
// Package keyfetch retrieve and cache PublicKeys
// from OIDC (https://example.com/.well-known/openid-configuration)
// and Auth0 (https://example.com/.well-known/jwks.json)
// JWKs URLs and expires them when `exp` is reached
// (or a default expiry if the key does not provide one).
// It uses the keypairs package to Unmarshal the JWKs into their
// native types (with a very thin shim to provide the type safety
// that Go's crypto.PublicKey and crypto.PrivateKey interfaces lack).
package keyfetch
import (

View File

@ -1,3 +1,7 @@
// Package keyserve provides middleware to serve Public Keys
// via OIDC-style (https://example.com/.well-known/openid-configuration)
// and Auth0-style (https://example.com/.well-known/jwks.json)
// URLs. It uses the keypairs package to encode to JWK format.
package keyserve
import (