(Devise+Omniauth) Adding a port number to the callback URL patch applied but not working with openid

I was facing problem reported in issue # 101 (https://github.com/ intridea/omniauth/issues/issue/101) and able to resolve it by suggested code (mbleigh on January 12, 2011) in environment.rb

However, open ID is still not working. (As mentioned in fix too).

Can someone please help to resolve this or any workaround ?

regards, Jaymin