Documentation ¶
Index ¶
- Constants
- func GenerateHeader(keyID string, privateKey []byte) (string, error)
- func GetPrivateKeyID(ctx context.Context) string
- func Handler(in http.Handler, keystore Keystore, headerKey string, ...) http.Handler
- func RoundTripper(in http.RoundTripper, headerKey, keyID string, privateKey []byte) http.RoundTripper
- func Securer(keystore Keystore, headerKey string, maxClockSkew time.Duration, ...) func(http.Handler) http.Handler
- type Keystore
Constants ¶
View Source
const HeaderKey = "Authentication"
Variables ¶
This section is empty.
Functions ¶
func GetPrivateKeyID ¶
GetPrivateKeyID returns the authenticated ID of the private key that was used to send a request via the hmac http.Handler.
func RoundTripper ¶
func RoundTripper(in http.RoundTripper, headerKey, keyID string, privateKey []byte) http.RoundTripper
RoundTripper add authentication to outgoing requests.
Types ¶
Click to show internal directories.
Click to hide internal directories.