Permalink
Browse files

Useful method for OAuth2 credentials where app wants to use some of t…

…hem, e.g. user ID returned as user creds.
  • Loading branch information...
sergeychernyshev committed Jan 9, 2018
1 parent f980019 commit 64f9a5fcbc990e892e3e2b5d0d782ea1822c5d67
Showing with 9 additions and 0 deletions.
  1. +9 −0 classes/OAuth2Module.php
View
@@ -1136,6 +1136,15 @@ public function __construct($oauth2_module, $oauth2_client_id, $userinfo,
$this->refresh_token = $refresh_token;
}
/**
* Returns an array of user information key-value pairs
*
* @return array Array of user-specific information
*/
public function getUserInfo() {
return $this->userinfo;
}
/**
* Returns a chunk of HTML to display user's credentials
*

0 comments on commit 64f9a5f

Please sign in to comment.