blob: 762f37f06e072b4c2a0d7dce84561db77b289b6e (
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(get_input('provider'));
$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php');
$html = $consumer->requestAuthentication();
if ($html) {
echo $html;
exit;
} else {
register_error('oops');
}
|