<?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: Api token access with authlogic and login</title>
	<atom:link href="http://blog.ekynoxe.com/2009/11/04/api-token-access-with-authlogic-and-login/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ekynoxe.com/2009/11/04/api-token-access-with-authlogic-and-login/</link>
	<description>development   /   design   /   photography</description>
	<lastBuildDate>Sat, 04 Sep 2010 10:51:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://blog.ekynoxe.com/2009/11/04/api-token-access-with-authlogic-and-login/comment-page-1/#comment-214</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 05 Apr 2010 16:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ekynoxe.com/?p=111#comment-214</guid>
		<description>Hi Paul,

I agree with you, this solution is no where near universal and has its problems as you pointed out.

However, it has been working fine for me with two clients (a web client and an XML API client) logged in at the same, as both use different authentication methods.

The XML API uses the single_access_token, while in my application, I use the excellent authlogic, which I think uses the persistence_token of the user model. As both are different in the DB, this works well.

Also, admitting that both solutions would use the same single_access_token, resetting it only for one format would lead to strange results, and an inconsistent behavior for the user.

Now, if you want to access a website both on a web desktop and lets say on a web mobile, for sure, there will be a problem with my solution, but my guess is this will not happen often.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I agree with you, this solution is no where near universal and has its problems as you pointed out.</p>
<p>However, it has been working fine for me with two clients (a web client and an XML API client) logged in at the same, as both use different authentication methods.</p>
<p>The XML API uses the single_access_token, while in my application, I use the excellent authlogic, which I think uses the persistence_token of the user model. As both are different in the DB, this works well.</p>
<p>Also, admitting that both solutions would use the same single_access_token, resetting it only for one format would lead to strange results, and an inconsistent behavior for the user.</p>
<p>Now, if you want to access a website both on a web desktop and lets say on a web mobile, for sure, there will be a problem with my solution, but my guess is this will not happen often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.ekynoxe.com/2009/11/04/api-token-access-with-authlogic-and-login/comment-page-1/#comment-213</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 05 Apr 2010 15:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ekynoxe.com/?p=111#comment-213</guid>
		<description>Hi,

I see that in your solution there is one tricks, when user first authenticated through client and then through Web, then they cannot works in parallel, because you reset single token, maybe better, reset it only for format xml.

But also you cannot logged in  parallel through two clients. Otherwise maybe better use toke of session not user&#039;s model.

Paul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I see that in your solution there is one tricks, when user first authenticated through client and then through Web, then they cannot works in parallel, because you reset single token, maybe better, reset it only for format xml.</p>
<p>But also you cannot logged in  parallel through two clients. Otherwise maybe better use toke of session not user&#8217;s model.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>
