Zend openid for mixi

August 19, 2011 § Leave a comment

After searching for many blogs and posts,understood
zend framework[1.11.9] is not fully supporting for openid2.0.
I found some blogs and samples,which helped me to extend support for mixi too.I came across https://github.com/marcinwol/zfopenid/
But,it doesn’t support for mixi also it does kind of hard code.I started to customize this by referring the blog
http://koujinogaku.blog9.fc2.com/blog-entry-306.html (its in japanese)
so mixi support is extended by customizing zfopenid and koujinogaku blog.

zend frameworkでmixiとfacebookのパッチ
参照:
https://github.com/marcinwol/zfopenid/
http://koujinogaku.blog9.fc2.com/blog-entry-306.html

To make it work,
1.download the code
2.replace the file Zend\Auth\Adapter\OpenId.php
3.Update appkeys.ini[incase of mixi,you can only get nickname,so comment remaining items to avoid parsing error]

Todo,
1.I suggest to use database based storage instead of file based storage.Database based helps to maintain files in APPLICATION_PATH . ‘/../tmp’ folder .Because,we can delete old nonce files easily. when we delete nonce files,need reject old nonces. For database implementation refer
http://framework.zend.com/manual/en/zend.openid.consumer.html
This dbstorage needs to be updated to make it deployment level.
2. way of using appkeys.ini needs a update.

Feed backs most welcome.

Source(ソース)
https://anandwebtech.wordpress.com/wp-content/uploads/2011/08/openidzf.doc [change extension as zip]
https://anandwebtech.wordpress.com/wp-content/uploads/2011/08/openid.doc [change extension as php]

Leave a comment

What’s this?

You are currently reading Zend openid for mixi at My technology archive.

meta

  • Design a site like this with WordPress.com
    Get started