Skip to content

Commit 00379fe

Browse files
authored
Merge pull request #8 from GoIntegro/go5-auth-idp-module
X-In-App-Browser header in OAuth token POST request
2 parents 243155c + 655d784 commit 00379fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/go5auth/lib/Auth/Source/LoggedUser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ private function getTokenInfoFromCode($code, $hostname)
107107
'client_id' => WEB_CLIENT_ID,
108108
'client_secret' => WEB_CLIENT_SECRET,
109109
'code' => $code,
110-
]
110+
],
111+
'headers' => [
112+
'X-In-App-Browser' => 1,
113+
],
111114
]);
112115

113116
return json_decode($codeResponse->getBody()->getContents());

0 commit comments

Comments
 (0)