Skip to content

Commit 8396adf

Browse files
committed
Use token type provided by token set in userinfo service
1 parent ef61cfb commit 8396adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/UserInfoService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getUserInfo(OpenIDClient $client, TokenSetInterface $tokenSet, b
8080
} else {
8181
$request = $this->requestFactory->createRequest('GET', $endpointUri)
8282
->withHeader('accept', $expectJwt ? 'application/jwt' : 'application/json')
83-
->withHeader('authorization', 'Bearer ' . $accessToken);
83+
->withHeader('authorization', ($tokenSet->getTokenType() ?: 'Bearer') . ' ' . $accessToken);
8484
}
8585

8686
$httpClient = $client->getHttpClient() ?? $this->client;

0 commit comments

Comments
 (0)