Skip to content

Commit

Permalink
Useful method for OAuth2 credentials where app wants to use some of t…
Browse files Browse the repository at this point in the history
…hem, e.g. user ID returned as user creds.
  • Loading branch information
Sergey Chernyshev committed Jan 9, 2018
1 parent f980019 commit 64f9a5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/OAuth2Module.php
Expand Up @@ -1136,6 +1136,15 @@ public function __construct($oauth2_module, $oauth2_client_id, $userinfo,
$this->refresh_token = $refresh_token; $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 * Returns a chunk of HTML to display user's credentials
* *
Expand Down

0 comments on commit 64f9a5f

Please sign in to comment.