File tree Expand file tree Collapse file tree
tests/TestCase/Authenticator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,11 +151,11 @@ public function testTokenPrefix()
151151 $ this ->assertInstanceOf (Result::class, $ result );
152152 $ this ->assertSame (Result::FAILURE_IDENTITY_NOT_FOUND , $ result ->getStatus ());
153153
154- // should not modify in between
155- $ requestWithHeaders = $ this ->request ->withAddedHeader ('X-Dipper-Auth ' , 'token_auth-token-13 ' );
154+ // should not remove prefix from token
155+ $ requestWithHeaders = $ this ->request ->withAddedHeader ('X-Dipper-Auth ' , 'mari mariano ' );
156156 $ tokenAuth = new TokenAuthenticator ($ this ->identifiers , [
157157 'header ' => 'X-Dipper-Auth ' ,
158- 'tokenPrefix ' => 'token_ ' ,
158+ 'tokenPrefix ' => 'mari ' ,
159159 ]);
160160 $ result = $ tokenAuth ->authenticate ($ requestWithHeaders );
161161 $ this ->assertInstanceOf (Result::class, $ result );
You can’t perform that action at this time.
0 commit comments