<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using OpenID within GWT</title>
	<atom:link href="http://chaoticjava.com/posts/using-openid-within-gwt/feed/" rel="self" type="application/rss+xml" />
	<link>http://chaoticjava.com/posts/using-openid-within-gwt/</link>
	<description>The internet, design patterns, frameworks and Java</description>
	<lastBuildDate>Sat, 05 Nov 2011 18:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: tim</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-150265</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Thu, 07 Jul 2011 04:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-150265</guid>
		<description>I still don&#039;t understand how it work....GWT has 1 &quot;main page&quot;. how can you restrict access to that page? If i go to myapp.appspot.com, the authentication servlet is not called.

  
    
      /Home.html
    
    
      *
    
     

If I do this

  
    
      /*
    
    
      *
    
     

then I get a redirect infinite loop problem when accessing myapp.appspot.com....</description>
		<content:encoded><![CDATA[<p>I still don&#8217;t understand how it work&#8230;.GWT has 1 &#8220;main page&#8221;. how can you restrict access to that page? If i go to myapp.appspot.com, the authentication servlet is not called.</p>
<p>      /Home.html</p>
<p>      *</p>
<p>If I do this</p>
<p>      /*</p>
<p>      *</p>
<p>then I get a redirect infinite loop problem when accessing myapp.appspot.com&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aviad</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-118721</link>
		<dc:creator>Aviad</dc:creator>
		<pubDate>Fri, 11 Mar 2011 13:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-118721</guid>
		<description>@Jesse: Well, as I wrote, I used the Cactus testing framework for it.. Since Cactus creates both client and server sides during the test, and then re-routes the requests and responses through the testing framework, it was a bit tricky to set up - but I guess it wasn&#039;t a special case for OpenID but a case about how to use Cactus properly. Did you check that framework?</description>
		<content:encoded><![CDATA[<p>@Jesse: Well, as I wrote, I used the Cactus testing framework for it.. Since Cactus creates both client and server sides during the test, and then re-routes the requests and responses through the testing framework, it was a bit tricky to set up &#8211; but I guess it wasn&#8217;t a special case for OpenID but a case about how to use Cactus properly. Did you check that framework?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Taylor</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-118636</link>
		<dc:creator>Jesse Taylor</dc:creator>
		<pubDate>Fri, 11 Mar 2011 05:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-118636</guid>
		<description>Did you ever write that post on how you unit tested OpenID?

There is a question on Stack Overflow trying to figure out how to test it from PHP/Zend, but I feel like your tests might be useful in understanding how to implement it in PHP.

Here&#039;s where the question is: http://stackoverflow.com/questions/5258954/how-do-i-test-login-using-openid-in-zend-framework</description>
		<content:encoded><![CDATA[<p>Did you ever write that post on how you unit tested OpenID?</p>
<p>There is a question on Stack Overflow trying to figure out how to test it from PHP/Zend, but I feel like your tests might be useful in understanding how to implement it in PHP.</p>
<p>Here&#8217;s where the question is: <a href="http://stackoverflow.com/questions/5258954/how-do-i-test-login-using-openid-in-zend-framework" rel="nofollow">http://stackoverflow.com/questions/5258954/how-do-i-test-login-using-openid-in-zend-framework</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dun74</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-113183</link>
		<dc:creator>Dun74</dc:creator>
		<pubDate>Mon, 14 Feb 2011 12:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-113183</guid>
		<description>Ok sorry, it was very easy :

// Attribute Exchange example: fetching the &#039;email&#039; attribute
FetchRequest fetch = FetchRequest.createFetchRequest();
fetch.addAttribute(&quot;email&quot;, &quot;http://schema.openid.net/contact/email&quot;,true); 
// obtain a AuthRequest message to be sent to the OpenID provider
AuthRequest authReq = this.manager.authenticate(discovered, this.callback.getOpenIdServletURL(), null);
authReq.addExtension(fetch);

Thank you
Dun</description>
		<content:encoded><![CDATA[<p>Ok sorry, it was very easy :</p>
<p>// Attribute Exchange example: fetching the &#8216;email&#8217; attribute<br />
FetchRequest fetch = FetchRequest.createFetchRequest();<br />
fetch.addAttribute(&#8220;email&#8221;, &#8220;http://schema.openid.net/contact/email&#8221;,true);<br />
// obtain a AuthRequest message to be sent to the OpenID provider<br />
AuthRequest authReq = this.manager.authenticate(discovered, this.callback.getOpenIdServletURL(), null);<br />
authReq.addExtension(fetch);</p>
<p>Thank you<br />
Dun</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dun74</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-113166</link>
		<dc:creator>Dun74</dc:creator>
		<pubDate>Mon, 14 Feb 2011 10:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-113166</guid>
		<description>Thank you very much for this article,
I used it in a sample projet, and it worked.
Now I just don&#039;t get how you retrieve the informations for the authenticated user you present in the response popup widget.
I read carfully the code, and parsed the http response but I can find the email for example or the full name.
Do I have to add parameters tu the request ?

Dun</description>
		<content:encoded><![CDATA[<p>Thank you very much for this article,<br />
I used it in a sample projet, and it worked.<br />
Now I just don&#8217;t get how you retrieve the informations for the authenticated user you present in the response popup widget.<br />
I read carfully the code, and parsed the http response but I can find the email for example or the full name.<br />
Do I have to add parameters tu the request ?</p>
<p>Dun</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GWT笔记 User Authentication &#124; 吃饭博客</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-86651</link>
		<dc:creator>GWT笔记 User Authentication &#124; 吃饭博客</dc:creator>
		<pubDate>Tue, 07 Sep 2010 15:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-86651</guid>
		<description>[...] http://chaoticjava.com/posts/using-openid-within-gwt/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://chaoticjava.com/posts/using-openid-within-gwt/" rel="nofollow">http://chaoticjava.com/posts/using-openid-within-gwt/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DraÅ¡ko</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-77805</link>
		<dc:creator>DraÅ¡ko</dc:creator>
		<pubDate>Sat, 22 May 2010 15:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-77805</guid>
		<description>There is a much simpler way to use OpenID on Google AppEngine.
Just use the following API:

    UserService userService = UserServiceFactory.getUserService(); 

to get the authenticated user: 

    User user = userService.getCurrentUser(); 

to get the logout redirect URL: 

    String redirectURL = userService.createLogoutURL(destinationURL, authDomain); 

to get the login redirect URL: 

    String redirectURL = userService.createLoginURL(destinationURL, authDomain, federatedIdentity, attributesRequest); 

I have successfully used the following request attributes: 

    Set attributesRequest = new HashSet(); 
    attributesRequest.add(&quot;openid.mode=checkid_immediate&quot;); 
    attributesRequest.add(&quot;openid.ns=http://specs.openid.net/auth/2.0&quot;); 
    attributesRequest.add(&quot;openid.return_to=http://super-easy.appspot.com&quot;); 

A working example with the GWT widget to select an OpenID provider is 
running under the http://super-easy.appspot.com 

HTH 
DraÅ¡ko</description>
		<content:encoded><![CDATA[<p>There is a much simpler way to use OpenID on Google AppEngine.<br />
Just use the following API:</p>
<p>    UserService userService = UserServiceFactory.getUserService(); </p>
<p>to get the authenticated user: </p>
<p>    User user = userService.getCurrentUser(); </p>
<p>to get the logout redirect URL: </p>
<p>    String redirectURL = userService.createLogoutURL(destinationURL, authDomain); </p>
<p>to get the login redirect URL: </p>
<p>    String redirectURL = userService.createLoginURL(destinationURL, authDomain, federatedIdentity, attributesRequest); </p>
<p>I have successfully used the following request attributes: </p>
<p>    Set attributesRequest = new HashSet();<br />
    attributesRequest.add(&#8220;openid.mode=checkid_immediate&#8221;);<br />
    attributesRequest.add(&#8220;openid.ns=http://specs.openid.net/auth/2.0&#8243;);<br />
    attributesRequest.add(&#8220;openid.return_to=http://super-easy.appspot.com&#8221;); </p>
<p>A working example with the GWT widget to select an OpenID provider is<br />
running under the <a href="http://super-easy.appspot.com" rel="nofollow">http://super-easy.appspot.com</a> </p>
<p>HTH<br />
DraÅ¡ko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DraÅ¡ko</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-77804</link>
		<dc:creator>DraÅ¡ko</dc:creator>
		<pubDate>Sat, 22 May 2010 15:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-77804</guid>
		<description>There is a much simpler way to use OpenID on Google AppEngine. Just use the following API:

    UserService userService = UserServiceFactory.getUserService(); 

to get the authenticated user: 

    User user = userService.getCurrentUser(); 

to get the logout redirect URL: 

    String redirectURL = userService.createLogoutURL(destinationURL, authDomain); 

to get the login redirect URL: 

    String redirectURL = userService.createLoginURL(destinationURL, authDomain, federatedIdentity, attributesRequest); 

I have successfully used the following request attributes: 

    Set attributesRequest = new HashSet(); 
    attributesRequest.add(&quot;openid.mode=checkid_immediate&quot;); 
    attributesRequest.add(&quot;openid.ns=http://specs.openid.net/auth/2.0&quot;); 
    attributesRequest.add(&quot;openid.return_to=http://super-easy.appspot.com&quot;); 

A working example with the GWT widget to select an OpenID provider is 
running under the http://super-easy.appspot.com 

HTH 
DraÅ¡ko</description>
		<content:encoded><![CDATA[<p>There is a much simpler way to use OpenID on Google AppEngine. Just use the following API:</p>
<p>    UserService userService = UserServiceFactory.getUserService(); </p>
<p>to get the authenticated user: </p>
<p>    User user = userService.getCurrentUser(); </p>
<p>to get the logout redirect URL: </p>
<p>    String redirectURL = userService.createLogoutURL(destinationURL, authDomain); </p>
<p>to get the login redirect URL: </p>
<p>    String redirectURL = userService.createLoginURL(destinationURL, authDomain, federatedIdentity, attributesRequest); </p>
<p>I have successfully used the following request attributes: </p>
<p>    Set attributesRequest = new HashSet();<br />
    attributesRequest.add(&#8220;openid.mode=checkid_immediate&#8221;);<br />
    attributesRequest.add(&#8220;openid.ns=http://specs.openid.net/auth/2.0&#8243;);<br />
    attributesRequest.add(&#8220;openid.return_to=http://super-easy.appspot.com&#8221;); </p>
<p>A working example with the GWT widget to select an OpenID provider is<br />
running under the <a href="http://super-easy.appspot.com" rel="nofollow">http://super-easy.appspot.com</a> </p>
<p>HTH<br />
DraÅ¡ko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Random Links #184 &#124; YASDW - yet another software developer weblog</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-76997</link>
		<dc:creator>Random Links #184 &#124; YASDW - yet another software developer weblog</dc:creator>
		<pubDate>Wed, 28 Apr 2010 21:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-76997</guid>
		<description>[...] Using OpenID within GWT I thought this would be easier [...]</description>
		<content:encoded><![CDATA[<p>[...] Using OpenID within GWT I thought this would be easier [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fenton</title>
		<link>http://chaoticjava.com/posts/using-openid-within-gwt/comment-page-1/#comment-76482</link>
		<dc:creator>Fenton</dc:creator>
		<pubDate>Thu, 15 Apr 2010 15:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/?p=227#comment-76482</guid>
		<description>Hello Aviad,

I tried to implement your solution, but I am confused: Where do you get the HttpServletReqeust and Response from? I saw that they are required as parameters in OpenID but I was not able to determine where these variables should come from in GWT.
Thanks for your reply :) !

Best regards</description>
		<content:encoded><![CDATA[<p>Hello Aviad,</p>
<p>I tried to implement your solution, but I am confused: Where do you get the HttpServletReqeust and Response from? I saw that they are required as parameters in OpenID but I was not able to determine where these variables should come from in GWT.<br />
Thanks for your reply <img src='http://chaoticjava.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

