ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/work/ogawa/openid/webapp/modules/openid/page/server_confirm.php @ 6683

Last change on this file since 6683 was 6683, checked in by ogawa, 13 years ago

#1762:endpoint他URL変更

File size: 718 bytes
Line 
1<?php
2/**
3 * @copyright 2005-2008 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7require_once 'Auth/OpenID/Server.php';
8require_once 'Auth/OpenID/FileStore.php';
9
10class openid_page_server_confirm extends OpenPNE_Action
11{
12    function execute($requests)
13    {
14        if ($requests['id'] != $GLOBALS['AUTH']->uid()) {
15            exit('error');
16        }
17
18        $op_endpoint = openpne_gen_url('openid', 'page_auth', $requests);
19        $oserver =& new Auth_OpenID_Server(new Auth_OpenID_FileStore(OPENPNE_VAR_DIR . '/tmp'), $op_endpoint);
20        $request = $oserver->decodeRequest();
21        $_SESSION['request'] = serialize($request);
22
23        return 'success';
24    }
25}
26
27?>
Note: See TracBrowser for help on using the repository browser.