From f2dd936aa8b13b59cead3f1432b83111c442419d Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Mon, 2 Nov 2015 15:24:32 -0800 Subject: [PATCH] added test for valid signing method --- parser_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/parser_test.go b/parser_test.go index 6592aff..97d9eee 100644 --- a/parser_test.go +++ b/parser_test.go @@ -109,6 +109,15 @@ var jwtTestData = []struct { jwt.ValidationErrorSignatureInvalid, &jwt.Parser{ValidMethods: []string{"HS256"}}, }, + { + "valid signing method", + "", + defaultKeyFunc, + map[string]interface{}{"foo": "bar"}, + true, + 0, + &jwt.Parser{ValidMethods: []string{"RS256", "HS256"}}, + }, { "JSON Number", "",