File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1277,8 +1277,11 @@ public function requestUserInfo(?string $attribute = null) {
12771277 throw new OpenIDConnectClientException ('The communication to retrieve user data has failed with status code ' .$ this ->getResponseCode ());
12781278 }
12791279
1280+ // Extract the content type from the response (remove optional charset)
1281+ $ contentType = explode ("; " ,$ this ->getResponseContentType ())[0 ];
1282+
12801283 // When we receive application/jwt, the UserInfo Response is signed and/or encrypted.
1281- if ($ this -> getResponseContentType () === 'application/jwt ' ) {
1284+ if ($ contentType === 'application/jwt ' ) {
12821285 // Check if the response is encrypted
12831286 $ jwtHeaders = $ this ->decodeJWT ($ response );
12841287 if (isset ($ jwtHeaders ->enc )) {
You can’t perform that action at this time.
0 commit comments