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

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

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

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

File size: 944 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 extends OpenPNE_Action
8{
9    function isSecure()
10    {
11        return false;
12    }
13
14    function execute($requests)
15    {
16        $server =& openid_util_get_server($requests['id']);
17        $openid_request = $server->decodeRequest();
18
19        $response = null;
20        if (in_array($openid_request->mode, array('checkid_immediate', 'checkid_setup'))) {
21            if ($openid_request->immediate) {
22                $response = $openid_request->answer(false);
23            } else {
24                openpne_forward('openid', 'page', 'server_confirm');
25                exit;
26            }
27        } else {
28            $response = $server->handleRequest($openid_request);
29        }
30
31        $webresponse = $server->encodeResponse($response);
32        openid_util_write_response($webresponse);
33    }
34}
35
36?>
Note: See TracBrowser for help on using the repository browser.