Adds unit testing for jws
This commit is contained in:
22
jwt/jose.go
22
jwt/jose.go
@@ -12,17 +12,17 @@ import (
|
||||
// JOSE represent a JSON Object Signing and Encryption header as
|
||||
// defined in RFC 7515.
|
||||
type JOSE struct {
|
||||
Algorithm string `json:"alg"`
|
||||
Type string `json:"typ,omitempty"`
|
||||
Content string `json:"cty,omitempty"`
|
||||
Critical string `json:"crit,omitempty"`
|
||||
JWKSetURL string `json:"jku,omitempty"`
|
||||
JSONWebKey string `json:"jwk,omitempty"`
|
||||
KeyID string `json:"kid,omitempty"`
|
||||
X509URL string `json:"x5u,omitempty"`
|
||||
X509CertificateChain string `json:"x5c,omitempty"`
|
||||
X509ThumbprintSha1 string `json:"x5t,omitempty"`
|
||||
X509ThumbprintSha256 string `json:"x5t#S256,omitempty"`
|
||||
Algorithm string `json:"alg"`
|
||||
Type string `json:"typ,omitempty"`
|
||||
Content string `json:"cty,omitempty"`
|
||||
Critical []string `json:"crit,omitempty"`
|
||||
JWKSetURL string `json:"jku,omitempty"`
|
||||
JSONWebKey string `json:"jwk,omitempty"`
|
||||
KeyID string `json:"kid,omitempty"`
|
||||
X509URL string `json:"x5u,omitempty"`
|
||||
X509CertificateChain string `json:"x5c,omitempty"`
|
||||
X509ThumbprintSha1 string `json:"x5t,omitempty"`
|
||||
X509ThumbprintSha256 string `json:"x5t#S256,omitempty"`
|
||||
|
||||
//Sets of adfditional headers, private or public
|
||||
AdditionalHeaders map[string]interface{} `json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user