Commit 7f365c50 authored by jcnventura's avatar jcnventura Committed by Joao Ventura
Browse files

Issue #3119496 by rcbcool, jcnventura: Issue with Github login

parent 0ff00304
......@@ -89,7 +89,7 @@ class OpenIDConnectFacebookClient extends OpenIDConnectClientBase {
* {@inheritdoc}
*/
public function decodeIdToken($id_token) {
return NULL;
return [];
}
/**
......
......@@ -72,7 +72,7 @@ class OpenIDConnectGithubClient extends OpenIDConnectClientBase {
* {@inheritdoc}
*/
public function decodeIdToken($id_token) {
return NULL;
return [];
}
/**
......@@ -112,7 +112,7 @@ class OpenIDConnectGithubClient extends OpenIDConnectClientBase {
// chosen to display it publicly. So we need to make another request to
// find out the user's email address(es).
if (empty($claims['email'])) {
$email_response = $client->get($endpoints['github_user'] . '/emails', $request_options);
$email_response = $client->get($endpoints['userinfo'] . '/emails', $request_options);
$email_response_data = json_decode((string) $email_response->getBody(), TRUE);
foreach ($email_response_data as $email) {
......
......@@ -54,7 +54,7 @@ class OpenIDConnectLinkedinClient extends OpenIDConnectClientBase {
* {@inheritdoc}
*/
public function decodeIdToken($id_token) {
return NULL;
return [];
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment