ページの先頭です。本文を読み飛ばして、このサイトのメニューなどを読む
サイト内の現在位置です:
XCL で xsns を使用していると「アカウント情報ページをマイページに置き換える 」を「はい」にした場合に外部認証経由でログインできなくなってしまいます。 xsns 側で最高優先度で処理をフックされてしまうのが原因で、対応を依頼しています。2008/11 現在、まだ対応しているバージョンはリリースされてませんので、パッチを当てて対応してください。
xsns_1.1.1/xoops_trust_path/modules/xsns/Preload.class.php
の
$root->mDelegateManager->add('Legacypage.Edituser.Access', 'XsnsFunction::edituser', XCUBE_DELEGATE_PRIORITY_FIRST, $file); を
$root->mDelegateManager->add('Legacypage.Edituser.Access', 'XsnsFunction::edituser', XCUBE_DELEGATE_PRIORITY_NORMAL-1, $file); という具合です。
mixi で使用するにはまず curl か openSSL どちらかが有効になっている必要があります。
サーバ上で以下のスクリプトを実行して curl と openssl の項目があるか確認してみてください。
<?php phpinfo();
Win32系であればphp.iniで
extension=php_curl.dll extension=php_openssl.dll
のどちらかの行が有効になっているか見てみてください。
XAMPPの場合は
以上の3つを編集し、すべて反映しておくと確実です。細かいことはXAMPP関係で調べてください。
curl か OpenSSL が有効になっている上で同様のエラーとなる場合は cacert.pem ファイルを最新のものにする必要があります。 こちらからダウンロードしてサーバの任意のディレクトリに置き、「使用する CERT ファイル」設定でそのディレクトリを指定してください。
ただし、ここからダウンロードできるcacert.pemは少し古いものとなっています。 すでに対応してないOPもありますので注意してください。
最新版が欲しい場合は同じページからリンクされているmk-ca-bundle.plを実行して作成する必要があります。
cacert.pemが古くて対応していないとそうなってしまいます。
mixi.jpの項目を参考に最新版にしてください。
出来ないことはないですが、なるべく自分で信頼できる方法で入手して欲しいのであえてやりません。
ウチのサイトを信頼していただけるのはありがたいですが、ご了承下さい。
そんな風に思っていた時期が俺にもありました。
今、いろいろと検討中です。
XREA 系サーバはセットアップ状況に問題があるようで DOMDocument 系の関数を使用すると落ちてしまいます。 しかし、パッチを作成された方がいるので、そちらを参考にしてください。
http://blog.oovch.net/article/96574155.html
こちら配布されている XML_php_modified.phps というファイルを
openid/class/Auth/Yadis/XML.php
と差し替えるとうまく行くようです。
特定のURLへリンクを張るだけで簡単に実現できます。
適当にブロックを作成したり、テンプレートを直したりしてバナーとリンクを設定してください。 XOOPS2 と XCL とでリンク先が違いますので注意してください。
以下、デモサイトでの例を示します。対応する場合はトップページの URL を読み替えてください。
XOOPSのトップページ:xoopsdemo.yoteihyo.com
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=yahoo.co.jp
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=mixi.jp
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=www.livedoor.com
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=biglobe.ne.jp
http://xoopsdemo.yoteihyo.com/modules/exauth/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=excite.jp
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=yahoo.co.jp
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=mixi.jp
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=www.livedoor.com
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=biglobe.ne.jp
http://xoopsdemo.yoteihyo.com/user.php?op=prelogin&exauth=openid&op=prelogin&exauth=openid&step=2&openid_identifier=excite.jp
また、それぞれアイコンが提供されていますので利用条件をご確認の上ご活用ください。
http://developer.yahoo.co.jp/openid/loginbuttons.html
http://developer.mixi.co.jp/openid/button
http://auth.livedoor.com/img/btn/16_16.gif http://auth.livedoor.com/img/btn/130_red.gif http://auth.livedoor.com/img/btn/130_white.gif http://auth.livedoor.com/img/btn/150_red.gif http://auth.livedoor.com/img/btn/150_white.gif
未提供
http://openid.biglobe.ne.jp/forrp.html
| Page Info | |
|---|---|
| Page Name : | XOOPS/ExAuth/FAQ |
| Page aliases : | None |
| Page owner : | kisara |
| Can Read | |
| Groups : | All visitors |
| Users : | All visitors |
| Can Edit | |
| Groups : | サイト管理者 |
| Users : | No one |