Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Site updated at 2014-02-08 00:51:38 UTC

  • Loading branch information...
commit 6491d302c69305f933777a0cd36d4780d8ab4fcb 1 parent 9618f3b
@nikhgupta authored
View
11 atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
@@ -22,9 +22,9 @@
managing my hosts configuration.</p>
<p>Recently, I was using <code>omniauth-twitter</code> to authenticate a client for my Rails
-application, when accessing the application&rsquo;s oauth url for twitter, i.e.
-<code>/auth/twitter</code> via the pow based domain gave me a <code>401 unauthorized</code> error,
-while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
+application. When trying to access the application&rsquo;s oauth url for twitter, i.e.
+<code>/auth/twitter</code> via the pow based domain I was getting a <code>401 unauthorized</code>
+error, while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
<p>I was scratching my heads over the reason, when I noticed that I was using
Environment variables in my provider definition, and I wondered probably Pow
@@ -33,7 +33,8 @@ webrick had access to these Environment variables.</p>
<p>So, I googled for a while and found that Pow actually does not have access to
<code>dotenv</code> based variables. Instead, it does allow setting them via a <code>.powenv</code>
-file. Therefore, I ran the following commands to configure all this:</p>
+file. Therefore, I ran the following commands to configure all this from my
+Rails&#8217; root path:</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
View
2  blog/categories/code/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: code | Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/blog/categories/code/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
View
2  blog/categories/diary/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: diary | Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/blog/categories/diary/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
View
2  blog/categories/personal/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: personal | Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/blog/categories/personal/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
View
11 blog/categories/rails/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: rails | Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/blog/categories/rails/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
@@ -22,9 +22,9 @@
managing my hosts configuration.</p>
<p>Recently, I was using <code>omniauth-twitter</code> to authenticate a client for my Rails
-application, when accessing the application&rsquo;s oauth url for twitter, i.e.
-<code>/auth/twitter</code> via the pow based domain gave me a <code>401 unauthorized</code> error,
-while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
+application. When trying to access the application&rsquo;s oauth url for twitter, i.e.
+<code>/auth/twitter</code> via the pow based domain I was getting a <code>401 unauthorized</code>
+error, while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
<p>I was scratching my heads over the reason, when I noticed that I was using
Environment variables in my provider definition, and I wondered probably Pow
@@ -33,7 +33,8 @@ webrick had access to these Environment variables.</p>
<p>So, I googled for a while and found that Pow actually does not have access to
<code>dotenv</code> based variables. Instead, it does allow setting them via a <code>.powenv</code>
-file. Therefore, I ran the following commands to configure all this:</p>
+file. Therefore, I ran the following commands to configure all this from my
+Rails' root path:</p>
<p><code>bash
echo 'export TWITTER_KEY=&lt;MY-TWITTER-KEY&gt;' &gt;&gt; .powenv
View
2  blog/categories/workflow/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: workflow | Nikhil Gupta]]></title>
<link href="http://nikhgupta.com/blog/categories/workflow/atom.xml" rel="self"/>
<link href="http://nikhgupta.com/"/>
- <updated>2014-02-08T06:13:59+05:30</updated>
+ <updated>2014-02-08T06:21:29+05:30</updated>
<id>http://nikhgupta.com/</id>
<author>
<name><![CDATA[Nikhil Gupta]]></name>
View
9 index.html
@@ -140,9 +140,9 @@ <h1 class="title" itemprop="name"><a href="/rails/401-unoauthorized-with-omniaut
managing my hosts configuration.</p>
<p>Recently, I was using <code>omniauth-twitter</code> to authenticate a client for my Rails
-application, when accessing the application&rsquo;s oauth url for twitter, i.e.
-<code>/auth/twitter</code> via the pow based domain gave me a <code>401 unauthorized</code> error,
-while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
+application. When trying to access the application&rsquo;s oauth url for twitter, i.e.
+<code>/auth/twitter</code> via the pow based domain I was getting a <code>401 unauthorized</code>
+error, while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
<p>I was scratching my heads over the reason, when I noticed that I was using
Environment variables in my provider definition, and I wondered probably Pow
@@ -151,7 +151,8 @@ <h1 class="title" itemprop="name"><a href="/rails/401-unoauthorized-with-omniaut
<p>So, I googled for a while and found that Pow actually does not have access to
<code>dotenv</code> based variables. Instead, it does allow setting them via a <code>.powenv</code>
-file. Therefore, I ran the following commands to configure all this:</p>
+file. Therefore, I ran the following commands to configure all this from my
+Rails&#8217; root path:</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
View
9 rails/401-unoauthorized-with-omniauth-twitter-and-pow-domains/index.html
@@ -114,9 +114,9 @@ <h1 class="title" itemprop="name">401 Unoauthorized With OmniAuth Twitter and Po
managing my hosts configuration.</p>
<p>Recently, I was using <code>omniauth-twitter</code> to authenticate a client for my Rails
-application, when accessing the application&rsquo;s oauth url for twitter, i.e.
-<code>/auth/twitter</code> via the pow based domain gave me a <code>401 unauthorized</code> error,
-while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
+application. When trying to access the application&rsquo;s oauth url for twitter, i.e.
+<code>/auth/twitter</code> via the pow based domain I was getting a <code>401 unauthorized</code>
+error, while accessing it via the Webrick&rsquo;s <code>http://localhost:3000</code> worked fine.</p>
<p>I was scratching my heads over the reason, when I noticed that I was using
Environment variables in my provider definition, and I wondered probably Pow
@@ -125,7 +125,8 @@ <h1 class="title" itemprop="name">401 Unoauthorized With OmniAuth Twitter and Po
<p>So, I googled for a while and found that Pow actually does not have access to
<code>dotenv</code> based variables. Instead, it does allow setting them via a <code>.powenv</code>
-file. Therefore, I ran the following commands to configure all this:</p>
+file. Therefore, I ran the following commands to configure all this from my
+Rails&#8217; root path:</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
View
6 sitemap.xml
@@ -102,11 +102,11 @@
<loc>
http://nikhgupta.com/rails/401-unoauthorized-with-omniauth-twitter-and-pow-domains/
</loc>
- <lastmod>2014-02-08T06:13:36+05:30</lastmod>
+ <lastmod>2014-02-08T06:21:11+05:30</lastmod>
</url>
<url>
<loc>http://nikhgupta.com/blog/archives/</loc>
- <lastmod>2014-02-08T06:13:36+05:30</lastmod>
+ <lastmod>2014-02-08T06:21:11+05:30</lastmod>
</url>
<url>
<loc>http://nikhgupta.com/blog/categories/</loc>
@@ -114,7 +114,7 @@
</url>
<url>
<loc>http://nikhgupta.com/</loc>
- <lastmod>2014-02-08T06:13:36+05:30</lastmod>
+ <lastmod>2014-02-08T06:21:11+05:30</lastmod>
</url>
<url>
<loc>http://nikhgupta.com/robots.txt</loc>
Please sign in to comment.
Something went wrong with that request. Please try again.