Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
openid4java如何创建哑模式或无状态消费者_Java_Openid_Openid4java - Fatal编程技术网

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);