<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>acidum.de &#187; OpenID</title>
	<atom:link href="http://www.acidum.de/tag/openid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acidum.de</link>
	<description></description>
	<lastBuildDate>Sun, 08 Nov 2009 20:12:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>10 Steps to Integrate OpenID into Grails</title>
		<link>http://www.acidum.de/2008/08/11/10-steps-to-integrate-openid-into-grails/</link>
		<comments>http://www.acidum.de/2008/08/11/10-steps-to-integrate-openid-into-grails/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 12:32:24 +0000</pubDate>
		<dc:creator>Christoph Hartmann</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[OpenID]]></category>

		<guid isPermaLink="false">http://www.acidum.de/?p=123</guid>
		<description><![CDATA[Check out how easy the integration of OpenID into Grails is:
1. Create a new grails application: grails create-app openID
2. Change into directory: cd openID
3. Install Plugin: grails install-plugin openid
4. Create a new controller: grails create-controller User
5. Create logon.gsp at grails-app/views/user
6. Add the following lines of code
 &#60;openid:css /&#62;
&#60;html&#62;
&#60;head&#62;
&#60;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&#62;
&#60;meta name="layout" content="main" /&#62;
&#60;title&#62;Login&#60;/title&#62;
&#60;openid:css /&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;h1&#62;Login&#60;/h1&#62;
&#60;openid:hasLoginError&#62;
&#60;div [...]]]></description>
			<content:encoded><![CDATA[<p>Check out how easy the integration of <a title="OpenID" href="http://openid.net/" target="_blank">OpenID</a> into Grails is:</p>
<p>1. Create a new grails application: grails create-app openID</p>
<p>2. Change into directory: cd openID</p>
<p>3. Install Plugin: grails install-plugin openid</p>
<p>4. Create a new controller: grails create-controller User</p>
<p>5. Create logon.gsp at grails-app/views/user</p>
<p>6. Add the following lines of code</p>
<p><code> &lt;openid:css /&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;<br />
&lt;meta name="layout" content="main" /&gt;<br />
&lt;title&gt;Login&lt;/title&gt;<br />
&lt;openid:css /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Login&lt;/h1&gt;<br />
&lt;openid:hasLoginError&gt;<br />
&lt;div class="errors"&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;openid:renderLoginError /&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/openid:hasLoginError&gt;<br />
&lt;openid:form success="[action:'loggedin']"&gt;<br />
&lt;openid:input size="30" value="http://" /&gt; (e.g. http://username.myopenid.com)<br />
&lt;br/&gt;<br />
&lt;g:submitButton name="login" value="Login" /&gt;<br />
&lt;/openid:form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>7. Edit UserController and add</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> UserController <span style="color: #009900;">&#123;</span>
def login <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#125;</span>
def loggedin <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> redirect<span style="color: #009900;">&#40;</span>uri<span style="color: #339933;">:</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>8. Call grails run-app</p>
<p>9. Open your web browser at http://localhost:8080/openID/User/login.gsp</p>
<p>10. Use your OpenID account to log on like <a title="Yahoo OpenID" href="http://openid.yahoo.com/" target="_blank">Yahoo OpenID</a>.</p>
<p>Check out <a title="Grails OpenID Integration" href="http://docs.codehaus.org/display/GRAILS/OpenID+Plugin" target="_blank">http://docs.codehaus.org/display/GRAILS/OpenID+Plugin</a> for further information about the Grails openID plugin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acidum.de/2008/08/11/10-steps-to-integrate-openid-into-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.343 seconds -->
