openid4java如何创建哑模式或无状态消费者
如何在没有发现和关联的情况下创建哑模式或无状态使用者openid4java如何创建哑模式或无状态消费者,java,openid,openid4java,Java,Openid,Openid4java,如何在没有发现和关联的情况下创建哑模式或无状态使用者 我已经遵循了,但是openid4java仍然会做一个关联。发现操作是OpenID工作所必需的 关于哑巴模式,这里有一段摘录自您所指出的博客帖子: 请注意,默认情况下,consumer manager在智能模式下工作,需要四次尝试才能创建与openid提供程序的关联。由于我们已将尝试次数设置为零,因此该方法仅返回DiscoveryInformation对象,并且不会进行关联,尽管该方法的名称为“associate” 根据它的说法,客户端程序确实
我已经遵循了,但是openid4java仍然会做一个关联。发现操作是OpenID工作所必需的 关于哑巴模式,这里有一段摘录自您所指出的博客帖子: 请注意,默认情况下,consumer manager在智能模式下工作,需要四次尝试才能创建与openid提供程序的关联。由于我们已将尝试次数设置为零,因此该方法仅返回DiscoveryInformation对象,并且不会进行关联,尽管该方法的名称为“associate” 根据它的说法,客户端程序确实在哑模式下运行
// 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);
// store the discovery information in the user's session
httpReq.getSession().setAttribute("openid-disc", discovered);
// obtain a AuthRequest message to be sent to the OpenID provider
AuthRequest authReq = manager.authenticate(discovered, returnToUrl);