asanso / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

How to disable discovery? #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
        // perform discovery on the user-supplied identifier
        List discoveries = manager.discover(userSuppliedString);

        // attempt to associate with the OpenID provider
        // and retrieve one service endpoint for authentication
        DiscoveryInformation discovered = manager.associate(discoveries);

how can i stop the openid4java to the discovery, or how to make a 
DiscoveryInformation object manually without parse remote xrds content.

thanks.

Original issue reported on code.google.com by i...@chenxiaosheng.com on 25 Dec 2013 at 4:51

GoogleCodeExporter commented 8 years ago
I got it

List discoveries = new ArrayList();
discoveries.add( new DiscoveryInformation( new URL("http://my.url") ) );

Original comment by i...@chenxiaosheng.com on 26 Dec 2013 at 9:45

GoogleCodeExporter commented 8 years ago
Discovery is mandatory for OpenID, skipping it would make the library (and its 
users) non-compliant. So I'm curios - what's the motivation for wanting to 
disable discovery (assuming while still remaining in the OpenID world)?

Original comment by Johnny.B...@gmail.com on 26 Dec 2013 at 6:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
mm,because we have only one OpenID Server( for company's internal visit, 
not for internet), so, every consumer(application) have the information of 
OpenID Server.

if we reduce the discover process, we may reduce the response time and server 
load.

Original comment by i...@chenxiaosheng.com on 30 Dec 2013 at 2:04