Wednesday, November 5, 2008

OpenID Troubleshooting for openid4java

On deployment of the bioMoby Annotator, ran into some interesting problems with OpenID.

Firstly, for those of you who are trying to figure out why Yahoo is giving you the

"Warning: This website has not confirmed its identity with Yahoo! and might be fraudulent. Do not share any personal information with this website unless you are certain it is legitimate."



I recommend having a look at the Yahoo OpenID FAQs

I also recommend the following articles:

Why Yahoo! says your OpenID site's identity is not confirmed

If you're using Openid4java from sxip, try this:
facileloging

If Yahoo is still giving you errors, consider their extra requirements:

Yahoo! will only support Relying Parties running on webservers with real hostnames (IP addresses are not supported) running on standard ports (Port 80 for HTTP and Port 443 for HTTPS).

This means localhost will not work and if it's running on say... port 8080, you'll need to figure out a way to forward from port 80 to port 8080

Your web app also needs to be available from the internet. You can test this by trying to access your website from another computer outside of your intranet.

So in the end: if your web address looks like http://localhost:8080/yourrealm/openid , it's not going to work. it needs to look similar to http://real.hostname.com/yourrealm/openid

If Yahoo is doing a discovery of your Yadis document on your REALM. ie. your index.html, make sure the header x-xrds-location is inserted into the head.

Again, if you're using Java Servlets and Apache Tomcat like I am, you'll need to do this using a Servlet Filter:


Instructions on Servlet Filter


Can't tell if it's in the header?
You can type curl -i http://your.website.com/yourrealm/ in your command prompt to check


Another note:
If you're getting:
org.openid4java.message.MessageException: 769: Realm verification

try going into the init method for your openid consumer Servlet
and adding in manager.getRealmVerifier().setEnforceRpId(false); after this.manager = new ConsumerManager();


A good website to go to make sure that an openID 2.0 Provider does work with openid4java is https://verify.sxip.com/papedemo/

41 comments:

春天季節到了 said...

閒來無聊逛逛blog~~跟您打聲招呼~~........................................

志義 said...

KK777一夜激情聊天live show成人自拍貼圖自慰少婦自拍裸體圖片台灣色情成人網站情人視訊網情色留言板視訊美女免費視訊聊天室限制級極度震撼情色論壇色情特區自拍裸女貼圖潮吹性影片觀賞小穴情色片a圖片sex story性愛影片美女做愛成人色情網站性愛圖片成人情色貼圖全裸寫真集圖片走光圖女生陰毛自慰影片色情av1007成人色情聊天室女生自慰裸體照成人影音聊天台灣色情網站色情片打手槍情色天堂成人視訊聊天免費情色網站av網超性感辣妹激突成人論壇情色視訊聊天鹹濕成人網站av成人論壇免費美女視訊

佩璇佩璇 said...

幽默並不是諷刺,它或許帶有溫和的嘲諷,卻不傷人,它可能是以別人,也可以用自己為對象。 ..................................................

吳柏廷 said...

教育的目的不是在製造機械,而是在造成人. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

NylaWoodcock0502 said...

笑口常開~~天天開心........................................

文婷 said...

人不可以求其備,必捨其所短,取其所長......................................................

怡君 said...

逛到你的部落格,第一個感覺就很好,希望每次更新都是美好的開始,也祝你天天都都開心喔 ..................................................

OliveWol8888 said...

被人揭下面具是一種失敗,自己揭下面具卻是種勝利。 ..................................................

丁SeritaG上心 said...

青春一逝不復返,事業一失難有成。........................................

HaydeeG_Mccra鈺苓 said...

真正的愛心,是照顧好自己的這顆心。.............................................

韋于倫成 said...

日本性愛本土性愛圖性愛罐頭連結本土性愛自拍圖台灣本土性愛色情網站排行色情網站論壇色情網戰色情說小色情影片片色情影片免會員色情影片亞洲色情影片站色情熟女貼圖片色情線上短片色情學文色情?漫艾莉絲無名相簿色情免費試看自拍色片下載區色片免費線上看色片直撥色片直播999色片情色卡通影片免費看色色論壇色免費論壇色言情小說色妹妹免費影片蜜雪兒免費小說 色ˋ情小說 成人貼圖站69成人

柏勳 said...

不要把生命看得太嚴肅,反正我們不會活著離開。...............................................................

義珊 said...

從人生中拿走友誼,猶如從生活中移走陽光..................................................

walsha said...

每一粒厄運的種子,卻包孕著未來豐盛的果實..............................

聖妃 said...

It takes all kinds to make a world.................................................................

嘉容 said...

希望我的支持可以帶給你快樂--加油.................................................................

鄭雨枝 said...

Make yourself necessary to someone...................................................................

玫友 said...

一個人的價值,應該看他貢獻了什麼,而不是他取得了什麼.................................................................

胤綸胤綸 said...

pleasure to find such a good artical! please keep update!!.................................................................                           

佳蓉佳蓉 said...

成熟,就是有能力適應生活中的模糊。.................................................................

陳登陽 said...

It takes all kinds to make a world.............................................................

雲亨雲亨雲亨 said...

一時的錯誤不算什麼,錯而不改才是一生中永遠且最大的錯誤............................................................

婉婷 said...

天下沒有意把鑰匙,可以打開所有的門............................................................

偉軍 said...

你文章很棒的~繼續分享給大家~~~~..................................................................

LupeConstan治士 said...

逛BLOG逛上癮了,一天不來會不習慣了耶!!..................................................................

志張sf夏康如皓志gfg志 said...

A stitch in time saves nine...................................................................

吳婷婷 said...

好多很有用資訊...感謝你的分享喔............................................................

鄭雅琦鄭雅琦 said...

「仁慈」二個字,就能讓冬天三個月都溫暖。..................................................

雅婷雅婷 said...

我們必須先有哭泣,才有歡笑;也必須先感到人生的悲哀,然後才感到人生的快樂。............................................................

RicoLisi0802志竹 said...

Knowledge is a treasure, but practice is the key to it.................................................

鄭信弘 said...

良言一句三冬暖,惡語傷人六月寒。......................................................................

曹初帆張武茜 said...

No one knows the weight of anothers burden. ..................................................

凱v胡倫 said...

It is easier to get than to keep it.......................................................................

宛淑芳真 said...

臨淵羨魚,不如退而結網。.......................................................

黃子黃麗旺軒 said...

死亡是悲哀的,但活得不快樂更悲哀。............................................................

徐雅黃昱行婷 said...

Nothing comes from nothing.............................................................

1615 said...

原來這世上能跟你共同領略一個笑話的人竟如此難得......................................................................

俊陳凱俊陳凱俊陳凱 said...

來看看你囉~blog很棒! ............................................................

忠姜姜姜蓮 said...

我是天山,等待一輪明月。......................................................................

于庭吳 said...

君子立恆志,小人恆立志。................. ................................................

HKjiqi said...

從人生中拿走友誼,猶如從生活中移走陽光......................................................................