Skip to content

Commit

Permalink
Add user agent string.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Aug 24, 2023
1 parent ecec31b commit 0af6ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Authress_Sso_Login_LoginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ private function decode_id_token( $id_token ) {

$client = new GuzzleHttp\Client([
'base_uri' => $expectedIss,
'decode_content' => false
'decode_content' => false,
'headers' => [ 'User-Agent' => 'Authress SDK; WordPress; ;' ]
]);

$response = $client->request('GET', '/.well-known/openid-configuration/jwks');
Expand Down

0 comments on commit 0af6ced

Please sign in to comment.