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

source: OpenPNE/branches/work/ogawa/openid/webapp/modules/openid/do/server_confirm.php @ 6690

Last change on this file since 6690 was 6690, checked in by ogawa, 12 years ago

#1762:webapp/modules/openid/lib作成

File size: 670 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
7class openid_do_server_confirm extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        if ($requests['id'] != $GLOBALS['AUTH']->uid()) {
12            openpne_redirect('openid', 'page_server_error');
13        }
14
15        $openid_request = openid_util_get_session();
16        openid_util_set_session();
17
18        $server =& openid_util_get_server($requests['id']);
19        $response =& $openid_request->answer(true);
20
21        $webresponse =& $server->encodeResponse($response);
22        openid_util_write_response($webresponse);
23    }
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.