F.Ko-Jiの「一秒後は未来」

PHP OpenID Library を使ってみた


.inOpenID

PHPOpenID


OpenIDOpenID Enabled  PHP OpenID Library 20081030 2.1.2 

Auth 


 examples 


OpenID


Auth/OpenID/FileStore.php

使MySQL使
Auth/OpenID/MySQLStore.php

使PEARDB(PEAR::DB)

PEAR::DB使使

Auto_OpenID_MySQLStore


 Auto_OpenID_MySQLStore 
protected function &getConsumer() {
    $store = $this->getStore();
    $consumer =& new Auth_OpenID_Consumer($store);
    return $consumer;
}

protected function getStore() {
    $options = array(
        'persistent' => true,
        'portability' => 'DB_PORTABILITY_ALL',
    );
    $db = DB::connect(DSN, $options);
    return new Auth_OpenID_MySQLStore($db);
}



2
CREATE TABLE `oid_nonces` (
  `server_url` varchar(2047) NOT NULL,
  `timestamp` int(11) NOT NULL,
  `salt` char(40) NOT NULL,
  UNIQUE KEY `server_url` (`server_url`(255),`timestamp`,`salt`)
) ENGINE=InnoDB;

CREATE TABLE `oid_associations` (
  `server_url` blob NOT NULL,
  `handle` varchar(255) NOT NULL,
  `secret` blob NOT NULL,
  `issued` int(11) NOT NULL,
  `lifetime` int(11) NOT NULL,
  `assoc_type` varchar(64) NOT NULL,
  PRIMARY KEY  (`server_url`(255),`handle`)
) ENGINE=InnoDB;

mixiOpenID


mixiSSLOpenIDcURL  HTTPS  curl 




mixi OpenIDPHP OpenID Library使()   IT 

jognote in silico  Blog Archive » cURL  HTTPS 



XREA


 XREA  libxml XML

» Geez in the universe: XREA / CORESERVER  OpenID 使 Yahoo  livedoor 使

 Auth/Yadis/XML.php 

Auth_OpenID_RAND_SOURCE




Define Auth_OpenID_RAND_SOURCE as null to continue with an insecure random number generator.

 /dev/urandom 
if (@is_readable('/dev/urandom')) {
    define('Auth_OpenID_RAND_SOURCE', '/dev/urandom');
} else {
    define('Auth_OpenID_RAND_SOURCE', NULL);
}

 Auth_OpenID_RAND_SOURCE  NULL 

» NP_OpenIDXREA/CORESERVER使  NP_cles()


 OpenID Mac


コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

著者について

fkoji

F.Ko-Ji


Web   Meity  .in # 

»