blob: 305ea3110b54f27b7de6501e2bac8edb0632f238 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* OpenID client login action
*/
elgg_load_library('openid_consumer');
$store = new Auth_OpenID_FileStore('/tmp');
$consumer = new ElggOpenIDConsumer($store);
$consumer->setProvider('google');
$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php');
$html = $consumer->requestAuthentication();
if ($html) {
echo $html;
exit;
} else {
register_error('oops');
}
|