Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ testDecodingThreeParts
invalid := $. join: ($. split: tokenString) allButLast.
self
should: [ JsonWebSignature materializeCompact: invalid key: 'foobar' ]
raise: AGInvalidTokenFormat.
raise: JWSInvalidTokenFormat.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ materialize: aString key: aKeyString checkSignature: checkSignature
| parts header jws |

parts := $. split: aString.
(parts size = 3) ifFalse: [ AGInvalidTokenFormat signal: 'the format of the token is invalid' ].
(parts size = 3) ifFalse: [ JWSInvalidTokenFormat signal: 'the format of the token is invalid' ].
header := JWSHeader fromJson: ( self base64Decoded: parts first ) utf8Decoded.
jws := JsonWebSignature new
key: aKeyString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "AGInvalidTokenFormat",
"name" : "JWSInvalidTokenFormat",
"type" : "normal"
}