khoanq / jopenid

Automatically exported from code.google.com/p/jopenid
0 stars 0 forks source link

Unable to use with yahoo #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set          Endpoint endpoint = manager.lookupEndpoint("http://
yahoo.com/");
2. Run login
3. Get exception:
java.lang.NullPointerException: Url is null.
    at com.javaeedev.openid.Endpoint.<init>(Endpoint.java:17)
    at com.javaeedev.openid.OpenIdManager.requestEndpoint
(OpenIdManager.java:156)
    at com.javaeedev.openid.OpenIdManager.lookupEndpoint
(OpenIdManager.java:118)

What is the expected output? What do you see instead?
Expected login :)

What version of the product are you using? On what operating system?
Latest jopenid with 
JBOSS_HOME: D:\projects\jboss-4.2.3.GA
JAVA: C:\Program Files\Java\jdk1.6.0_11\\bin\java

Please provide any additional information below.
Google login works just fine.

Original issue reported on code.google.com by yeren...@gmail.com on 14 May 2009 at 1:26

GoogleCodeExporter commented 8 years ago
only debug & make it work with google, not tested with yahoo, because yahoo 
provides 
little documents and I need to do further research.

Original comment by askxuefeng@gmail.com on 17 May 2009 at 2:16

GoogleCodeExporter commented 8 years ago
Fixed in 1.01

Original comment by askxuefeng@gmail.com on 4 Jun 2009 at 5:59

GoogleCodeExporter commented 8 years ago
Yahoo url is:
http://open.login.yahooapis.com/openid20/www.yahoo.com/xrds

Now you can edit ops.properties to add open id provider, and using friendly 
name:

Endpoint endpoint = manager.lookupEndpoint("Google");

Original comment by askxuefeng@gmail.com on 4 Jun 2009 at 6:02

GoogleCodeExporter commented 8 years ago
Could you provide some nicer error message like: "invalid openid url: " + url
(and the reason why it's not a valid open id url)
to explain that the problem is because users provided a wrong url...

thanks ;)

Original comment by benjamin...@gmail.com on 1 Jul 2009 at 2:49

GoogleCodeExporter commented 8 years ago
OpenId has a complex lookup protocol to get the provider url from email, http 
url, 
etc.
but jopenid does not implement this protocol, also it is not a problem because 
99% 
end-users may not understand it.

you should provide a list for users and let them choose instead of input:

Google Account, Yahoo Account, Blogger...

all these urls are stored in ops.properties. you can add more providers.

Original comment by askxuefeng@gmail.com on 9 Oct 2009 at 5:14