Address @jcj comments on #497
This commit is contained in:
parent
46573e93a2
commit
bef0dbf99a
|
|
@ -62,7 +62,6 @@ type verificationRequestEvent struct {
|
||||||
Error string `json:",omitempty"`
|
Error string `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Update jws.go to accept jose.JsonWebKey in newVerifier
|
|
||||||
func verifyValidationJWS(validation *jose.JsonWebSignature, accountKey *jose.JsonWebKey, target map[string]interface{}) error {
|
func verifyValidationJWS(validation *jose.JsonWebSignature, accountKey *jose.JsonWebKey, target map[string]interface{}) error {
|
||||||
|
|
||||||
if len(validation.Signatures) > 1 {
|
if len(validation.Signatures) > 1 {
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,6 @@ const pathWrongToken = "wrongtoken"
|
||||||
const path404 = "404"
|
const path404 = "404"
|
||||||
const pathFound = "302"
|
const pathFound = "302"
|
||||||
const pathMoved = "301"
|
const pathMoved = "301"
|
||||||
const pathUnsafe = "%"
|
|
||||||
const pathUnsafe302 = "302-to-unsafe"
|
|
||||||
|
|
||||||
func createValidation(token string, enableTLS bool) string {
|
func createValidation(token string, enableTLS bool) string {
|
||||||
payload, _ := json.Marshal(map[string]interface{}{
|
payload, _ := json.Marshal(map[string]interface{}{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue