function oauth2_server_userinfo in OAuth2 Server 7
Page callback: returns claims about the authenticated end-user.
1 string reference to 'oauth2_server_userinfo'
- oauth2_server_menu in ./
oauth2_server.module - Implements hook_menu().
File
- ./
oauth2_server.pages.inc, line 218 - Page callbacks for the OAuth2 Server module.
Code
function oauth2_server_userinfo() {
$request = OAuth2\Request::createFromGlobals();
$server = oauth2_server_from_request($request);
$response = new OAuth2\Response();
$server
->handleUserInfoRequest($request, $response);
return oauth2_server_send_response($response);
}