File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function createRequest(
3131
3232 $ request = $ request ->withHeader (
3333 'Authorization ' ,
34- 'Basic ' . base64_encode ($ clientId . ': ' . $ clientSecret )
34+ 'Basic ' . base64_encode (urlencode ( $ clientId) . ': ' . urlencode ( $ clientSecret) )
3535 );
3636
3737 $ request ->getBody ()->write (http_build_query ($ claims ));
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ public function testCreateRequest(): void
3232 $ metadata = $ this ->prophesize (ClientMetadataInterface::class);
3333
3434 $ client ->getMetadata ()->willReturn ($ metadata ->reveal ());
35- $ metadata ->getClientId ()->willReturn ('foo ' );
36- $ metadata ->getClientSecret ()->willReturn ('bar ' );
35+ $ metadata ->getClientId ()->willReturn ('fooo ' );
36+ $ metadata ->getClientSecret ()->willReturn ('bar% ' );
3737
38- $ request ->withHeader ('Authorization ' , 'Basic ' . base64_encode ('foo :bar ' ))
38+ $ request ->withHeader ('Authorization ' , 'Basic ' . base64_encode ('fooo :bar%25 ' ))
3939 ->shouldBeCalled ()
4040 ->willReturn ($ requestWithHeader ->reveal ());
4141
You can’t perform that action at this time.
0 commit comments