We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c2be6 commit c612b99Copy full SHA for c612b99
tests/JWTTest.php
@@ -116,4 +116,18 @@ public function testKIDChooser()
116
$decoded = JWT::decode($msg, $keys, array('HS256'));
117
$this->assertEquals($decoded, 'abc');
118
}
119
+
120
+ public function testNoneToken()
121
+ {
122
+ $msg = JWT::encode('abc', 'my_key');
123
+ $this->setExpectedException('DomainException');
124
+ JWT::decode($msg, 'my_key', array('none'));
125
+ }
126
127
+ public function testIncorrectAlgorithm()
128
129
130
131
+ JWT::decode($msg, 'my_key', array('RS256'));
132
133
0 commit comments