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

Ignore:
Timestamp:
Apr 22, 2008, 1:47:01 AM (13 years ago)
Author:
ogawa
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ogawa/openid/webapp/modules/openid/page/server_confirm.php

    r6683 r6690  
    55 */
    66
    7 require_once 'Auth/OpenID/Server.php';
    8 require_once 'Auth/OpenID/FileStore.php';
    9 
    107class openid_page_server_confirm extends OpenPNE_Action
    118{
     
    1310    {
    1411        if ($requests['id'] != $GLOBALS['AUTH']->uid()) {
    15             exit('error');
     12            openpne_redirect('openid', 'page_server_error');
    1613        }
    1714
    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);
     15        $server =& openid_util_get_server($requests['id']);
     16        $openid_request = $server->decodeRequest();
     17        openid_util_set_session($openid_request);
    2218
    2319        return 'success';
Note: See TracChangeset for help on using the changeset viewer.