<?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: Release: [Kohana Module] Authlite, for User Authentication</title>
	<atom:link href="http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/</link>
	<description>Follow us on Twitter: @fredwu and @scotti3g</description>
	<lastBuildDate>Tue, 27 Jul 2010 08:32:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Alexander B.</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-28893</link>
		<dc:creator>Alexander B.</dc:creator>
		<pubDate>Tue, 09 Mar 2010 09:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-28893</guid>
		<description>Hi, 

thanks for your great Module.
Do you have a tutorial or examples, how to use this Module?
I am a beginner at the kohana framework and the standard Auth Module is not enough documented....

Thanks

Greets, Alex</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>thanks for your great Module.<br />
Do you have a tutorial or examples, how to use this Module?<br />
I am a beginner at the kohana framework and the standard Auth Module is not enough documented&#8230;.</p>
<p>Thanks</p>
<p>Greets, Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hfossli</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-27561</link>
		<dc:creator>hfossli</dc:creator>
		<pubDate>Thu, 11 Feb 2010 16:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-27561</guid>
		<description>Hi!
Is it possible to have multiple clients logged in as the same user simultaneously? Will there be trouble with sessions and stuff if so?
Thanks. Great module!</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Is it possible to have multiple clients logged in as the same user simultaneously? Will there be trouble with sessions and stuff if so?<br />
Thanks. Great module!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Stewart</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-24480</link>
		<dc:creator>Dave Stewart</dc:creator>
		<pubDate>Mon, 14 Dec 2009 15:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-24480</guid>
		<description>Hey Fred,

Great module! It certainly makes authorisation nice and easy.

I&#039;ve modded the module a little, more to my purposes, and am about to make another change, but thought I&#039;d see if you had any thoughts.

At the moment, logged_in() returns an ORM instance, but for example, I&#039;m using a user model, and actually I want to return an instance, so throughout the rest of the models in my application I can do something like...

&lt;code&gt;User_Model::instance()-&gt;some_property;&lt;/code&gt;

...without having to pass the only logged-in user into all my app&#039;s models.

Have you ever had any thoughts this way?

I&#039;ll probably just extend the class, but it might be a nice addition into the core.

Cheers,
Dave</description>
		<content:encoded><![CDATA[<p>Hey Fred,</p>
<p>Great module! It certainly makes authorisation nice and easy.</p>
<p>I&#8217;ve modded the module a little, more to my purposes, and am about to make another change, but thought I&#8217;d see if you had any thoughts.</p>
<p>At the moment, logged_in() returns an ORM instance, but for example, I&#8217;m using a user model, and actually I want to return an instance, so throughout the rest of the models in my application I can do something like&#8230;</p>
<p><code>User_Model::instance()-&gt;some_property;</code></p>
<p>&#8230;without having to pass the only logged-in user into all my app&#8217;s models.</p>
<p>Have you ever had any thoughts this way?</p>
<p>I&#8217;ll probably just extend the class, but it might be a nice addition into the core.</p>
<p>Cheers,<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Authlite 2.0 for Kohana 3.0 Alpha Testing &#171; Best PHP Frameworks</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-24223</link>
		<dc:creator>Authlite 2.0 for Kohana 3.0 Alpha Testing &#171; Best PHP Frameworks</dc:creator>
		<pubDate>Wed, 09 Dec 2009 14:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-24223</guid>
		<description>[...] you are using Kohana 2.x, please use Authlite 1.x, otherwise, you are welcome to check out the new code tailored for Kohana [...]</description>
		<content:encoded><![CDATA[<p>[...] you are using Kohana 2.x, please use Authlite 1.x, otherwise, you are welcome to check out the new code tailored for Kohana [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Authlite 2.0 for Kohana 3.0 Alpha Testing &#124; Beyond Coding</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-22181</link>
		<dc:creator>Authlite 2.0 for Kohana 3.0 Alpha Testing &#124; Beyond Coding</dc:creator>
		<pubDate>Sat, 31 Oct 2009 12:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-22181</guid>
		<description>[...] you are using Kohana 2.x, please use Authlite 1.x, otherwise, you are welcome to check out the new code tailored for Kohana [...]</description>
		<content:encoded><![CDATA[<p>[...] you are using Kohana 2.x, please use Authlite 1.x, otherwise, you are welcome to check out the new code tailored for Kohana [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Choosing a PHP Framework Round 2: Yii vs Kohana vs CodeIgniter &#124; PHP Frameworks</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-21393</link>
		<dc:creator>Choosing a PHP Framework Round 2: Yii vs Kohana vs CodeIgniter &#124; PHP Frameworks</dc:creator>
		<pubDate>Sun, 18 Oct 2009 15:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-21393</guid>
		<description>[...] Kohana has a built-in Auth module and a number of 3rd party Auth and ACL libraries including my Authlite. [...]</description>
		<content:encoded><![CDATA[<p>[...] Kohana has a built-in Auth module and a number of 3rd party Auth and ACL libraries including my Authlite. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred Wu</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-20937</link>
		<dc:creator>Fred Wu</dc:creator>
		<pubDate>Tue, 06 Oct 2009 22:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-20937</guid>
		<description>Yes Authlite will be updated to work with K3 very soon. :-)</description>
		<content:encoded><![CDATA[<p>Yes Authlite will be updated to work with K3 very soon. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-20933</link>
		<dc:creator>Arno</dc:creator>
		<pubDate>Tue, 06 Oct 2009 20:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-20933</guid>
		<description>Will there be a KO3 version (soon)?

Thanks</description>
		<content:encoded><![CDATA[<p>Will there be a KO3 version (soon)?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-19353</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Fri, 04 Sep 2009 16:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-19353</guid>
		<description>Hi Fred. I&#039;m &lt;em&gt;this&lt;/em&gt; close to getting this module to work but I&#039;m running into a snag. I&#039;m familiar with PHP but new to Kohana, so it could very well be something I&#039;m doing but I can&#039;t see it.

I&#039;m getting the login to work correctly. It&#039;s hitting the database (verified the query in the Profiler) and redirecting to my Admin controller&#039;s index action successfully but it&#039;s not setting the session variable. So, when I check $this-&gt;authlite-&gt;logged_in(), it&#039;s returning false. Would you - or anyone else here - be able to point out something I&#039;m missing?

&lt;code&gt;
class Admin_Controller extends Website_Controller {


	public function __construct() {
		
		parent::__construct();
		
	}

	public function index() {
	
		$this-&gt;profiler = new Profiler;
		$this-&gt;session = Session::instance(); // added in case it would make a difference. it did not.
		$this-&gt;authlite = Authlite::instance(&#039;authlite&#039;);
		
		if (!$this-&gt;authlite-&gt;logged_in()) {
			//url::redirect(Router::$controller.&#039;/login&#039;);
			echo &quot;not logged in&quot;;
		} else {
			/*$this-&gt;user = $this-&gt;authlite-&gt;get_user();
			echo $this-&gt;user;*/
			echo &quot;logged in&quot;;
		}		
	}
	
	public function login() {

		$this-&gt;profiler = new Profiler;
			
		$this-&gt;authlite = Authlite::instance(&#039;authlite&#039;);

		if ($this-&gt;authlite-&gt;logged_in()) {
			
			url::redirect(&#039;admin&#039;);
			
		} else {
			
			if ($_POST) {
			
				$login = $this-&gt;authlite-&gt;login($_POST[&#039;username&#039;], $_POST[&#039;password&#039;]);
								
				if ($login == true) {
					
					url::redirect(Router::$controller);
					
				} else {
					
					echo &#039;login failed.&#039;;
				
				}
				
			}

		}
	}
}
&lt;/code&gt;

This is just a small personal website I&#039;m working on to get familiar with Kohana, which is one reason I wanted to use this module. I don&#039;t need anything fancy like roles and such. Just a way to make sure I&#039;m the only one who can get to the admin pages. Thanks for any help you can provide.

-michael</description>
		<content:encoded><![CDATA[<p>Hi Fred. I&#8217;m <em>this</em> close to getting this module to work but I&#8217;m running into a snag. I&#8217;m familiar with PHP but new to Kohana, so it could very well be something I&#8217;m doing but I can&#8217;t see it.</p>
<p>I&#8217;m getting the login to work correctly. It&#8217;s hitting the database (verified the query in the Profiler) and redirecting to my Admin controller&#8217;s index action successfully but it&#8217;s not setting the session variable. So, when I check $this-&gt;authlite-&gt;logged_in(), it&#8217;s returning false. Would you &#8211; or anyone else here &#8211; be able to point out something I&#8217;m missing?</p>
<p><code><br />
class Admin_Controller extends Website_Controller {</p>
<p>	public function __construct() {</p>
<p>		parent::__construct();</p>
<p>	}</p>
<p>	public function index() {</p>
<p>		$this-&gt;profiler = new Profiler;<br />
		$this-&gt;session = Session::instance(); // added in case it would make a difference. it did not.<br />
		$this-&gt;authlite = Authlite::instance('authlite');</p>
<p>		if (!$this-&gt;authlite-&gt;logged_in()) {<br />
			//url::redirect(Router::$controller.'/login');<br />
			echo "not logged in";<br />
		} else {<br />
			/*$this-&gt;user = $this-&gt;authlite-&gt;get_user();<br />
			echo $this-&gt;user;*/<br />
			echo "logged in";<br />
		}<br />
	}</p>
<p>	public function login() {</p>
<p>		$this-&gt;profiler = new Profiler;</p>
<p>		$this-&gt;authlite = Authlite::instance('authlite');</p>
<p>		if ($this-&gt;authlite-&gt;logged_in()) {</p>
<p>			url::redirect('admin');</p>
<p>		} else {</p>
<p>			if ($_POST) {</p>
<p>				$login = $this-&gt;authlite-&gt;login($_POST['username'], $_POST['password']);</p>
<p>				if ($login == true) {</p>
<p>					url::redirect(Router::$controller);</p>
<p>				} else {</p>
<p>					echo 'login failed.';</p>
<p>				}</p>
<p>			}</p>
<p>		}<br />
	}<br />
}<br />
</code></p>
<p>This is just a small personal website I&#8217;m working on to get familiar with Kohana, which is one reason I wanted to use this module. I don&#8217;t need anything fancy like roles and such. Just a way to make sure I&#8217;m the only one who can get to the admin pages. Thanks for any help you can provide.</p>
<p>-michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jyoti</title>
		<link>http://www.beyondcoding.com/2009/01/21/release-kohana-module-authlite-for-user-authentication/comment-page-1/#comment-18546</link>
		<dc:creator>Jyoti</dc:creator>
		<pubDate>Mon, 24 Aug 2009 13:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=170#comment-18546</guid>
		<description>Is this module compatible with Kohana 2.3.4 reply me soon</description>
		<content:encoded><![CDATA[<p>Is this module compatible with Kohana 2.3.4 reply me soon</p>
]]></content:encoded>
	</item>
</channel>
</rss>
