|
OpenIDConsumer
IntroductionTo use JOID as a Consumer, there are basically two steps.
OpenIdFilterAdd the following to web.xml <filter>
<filter-name>OpenIdFilter</filter-name>
<filter-class>org.verisign.joid.consumer.OpenIdFilter</filter-class>
<init-param>
<param-name>saveInCookie</param-name>
<param-value>true</param-value>
<description>Optional. Will store the identity url in a cookie under "openid.identity" if set to true.</description>
</init-param>
<!--
<init-param>
<param-name>cookieDomain</param-name>
<param-value>www.mydomain.com</param-value>
<description>Optional. Domain to store cookie based on RFC 2109. Defaults to current context.</description>
</init-param>
-->
</filter>
<filter-mapping>
<filter-name>OpenIdFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>OpenID FormThis form will accept a users OpenID URL identifier and upon submit, it redirects to the OpenID server identified by the URL and asks the user to accept the authentication request. See here for example pages you can use and modify: http://joid.googlecode.com/svn/trunk/examples/server/ |
► Sign in to add a comment
yahoo.com
I do these steps below: - Add joid.jar, log4j-1.2.13.jar, tsik.jar to WEB-INF/lib/.jar - Add index.jsp to WEB-INF/index.jsp - Run index.jsp
--> "An error occurred! Please press back and try again." and stacktrace is: identityUrl=http://me.yahoo.com/rockerhieu java.security.AccessControlException?: access denied (java.net.SocketPermission? me.yahoo.com resolve)
Please help me to solved it. Thanks much.
It looks like org.verisign.joid.consumer.Discoverer.findWithYadis is using some port other than 80 or 443. You can only make HTTP or HTTPS connections from appengine.
I would also like to know when JOID works with AppEngine?.
<filter>