/
2014-12-18-doorkeeper-gem-1-to-2.html
445 lines (302 loc) · 25.7 KB
/
2014-12-18-doorkeeper-gem-1-to-2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>doorkeeper gem を 1.4 系から 2.0 系にアップデートした - @znz blog</title>
<meta name="author" content="Kazuhiro NISHIYAMA">
<meta name="description" content="doorkeeper gem を 1.4 系から 2.0 系にアップデートした Dec 18th, 2014 4:18 pm | Comments doorkeeper gem がメジャーバージョンアップして非互換があったので、
対応したときのメモです。 対象バージョン rails 4.1.8 …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://blog.n-z.jp/blog/2014-12-18-doorkeeper-gem-1-to-2.html">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="@znz blog" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43859023-1', 'n-z.jp');
ga('send', 'pageview');
</script>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">@znz blog</a></h1>
<h2>ZnZ の memo のようなもの</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://www.google.co.jp/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-4711975605457723:5173725094" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="40" />
<input type="submit" name="sa" value="検索" />
</div>
</form>
<script type="text/javascript" src="http://www.google.co.jp/coop/cse/brand?form=cse-search-box&lang=ja"></script>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div>
<article class="hentry" role="article">
<header>
<!-- zenback_title_begin -->
<h1 class="entry-title">doorkeeper gem を 1.4 系から 2.0 系にアップデートした</h1>
<!-- zenback_title_end -->
<p class="meta">
<time class='entry-date' datetime='2014-12-18T16:18:00+09:00'><span class='date'><span class='date-month'>Dec</span> <span class='date-day'>18</span><span class='date-suffix'>th</span>, <span class='date-year'>2014</span></span> <span class='time'>4:18 pm</span></time>
| <a href="#disqus_thread"
data-disqus-identifier="http://blog.n-z.jp">Comments</a>
</p>
</header>
<!-- zenback_body_begin -->
<div class="entry-content"><p>doorkeeper gem がメジャーバージョンアップして非互換があったので、
対応したときのメモです。</p>
<!--more-->
<h2>対象バージョン</h2>
<ul>
<li>rails 4.1.8</li>
<li>doorkeeper 1.4.0 から 2.0.1</li>
</ul>
<h2>変更点確認</h2>
<p><a href="https://github.com/doorkeeper-gem/doorkeeper/blob/master/CHANGELOG.md">CHANGELOG.md</a>
にまとまっていたので、参考にしました。</p>
<p>セキュリティアップデートも含まれるようなので、
2.0 系にあげられないときは 1.4.1 にあげておくのが良さそうです。</p>
<h2><code>doorkeeper_for</code> の書き換え</h2>
<p><code>doorkeeper_for :all</code> は <code>before_action :doorkeeper_authorize!</code> に書き換えました。</p>
<div class='bogus-wrapper'><notextile><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>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class='diff'><span class='line'><span class="gd">- doorkeeper_for :all</span>
</span><span class='line'><span class="gd">- respond_to :json</span>
</span><span class='line'><span class="gi">+ before_action :doorkeeper_authorize!</span>
</span><span class='line'><span class="gi">+ respond_to :json</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<div class='bogus-wrapper'><notextile><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>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
</pre></td><td class='code'><pre><code class='diff'><span class='line'><span class="gd">- doorkeeper_for :index, :show, scopes: %w"public"</span>
</span><span class='line'><span class="gd">- doorkeeper_for :create, :update, scopes: %w"admin write"</span>
</span><span class='line'><span class="gi">+ before_action -> { doorkeeper_authorize! :public }, only: [:index, :show]</span>
</span><span class='line'><span class="gi">+ before_action only: [:create, :update] do</span>
</span><span class='line'><span class="gi">+ doorkeeper_authorize! :admin, :write</span>
</span><span class='line'><span class="gi">+ end</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<h2><code>config/initializers/doorkeeper.rb</code> の更新</h2>
<p><code>rails g doorkeeper:install</code> で生成し直して変更していた部分を再適用しました。</p>
<ul>
<li><code>resource_owner_authenticator</code> で <code>devise</code> との連携</li>
<li>scope 関連</li>
<li>認可の画面のスキップ</li>
<li>動的な query parameter の許可</li>
</ul>
<div class='bogus-wrapper'><notextile><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>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
</pre></td><td class='code'><pre><code class='ruby'><span class='line'> <span class="n">resource_owner_authenticator</span> <span class="k">do</span>
</span><span class='line'> <span class="n">current_user</span> <span class="o">||</span> <span class="n">warden</span><span class="o">.</span><span class="n">authenticate!</span><span class="p">(</span><span class="ss">scope</span><span class="p">:</span> <span class="ss">:user</span><span class="p">)</span>
</span><span class='line'> <span class="k">end</span>
</span><span class='line'>
</span><span class='line'> <span class="n">default_scopes</span> <span class="ss">:public</span>
</span><span class='line'> <span class="n">optional_scopes</span> <span class="ss">:admin</span><span class="p">,</span> <span class="ss">:write</span>
</span><span class='line'>
</span><span class='line'> <span class="n">skip_authorization</span> <span class="k">do</span> <span class="o">|</span><span class="n">resource_owner</span><span class="p">,</span> <span class="n">client</span><span class="o">|</span>
</span><span class='line'> <span class="kp">true</span>
</span><span class='line'> <span class="k">end</span>
</span><span class='line'>
</span><span class='line'> <span class="n">wildcard_redirect_uri</span> <span class="kp">true</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<h2><code>config/locales/doorkeeper.en.yml</code> の更新</h2>
<p><code>rails g doorkeeper:install</code> で <code>config/initializers/doorkeeper.rb</code> と一緒に更新されていました。</p>
<p>認可の画面をスキップしている関係で、翻訳はせずに en を ja に置き換えただけで
そのまま使っていたので、同様に置き換えてそのまま使いました。</p>
<h2><code>redirect urimust be an HTTPS/SSL URI.</code> 対策</h2>
<p>テストの中で
<code>let!(:application) { Doorkeeper::Application.create!(name: 'MyApp', redirect_uri: 'http://api.test') }</code>
のようにしていると
<code>redirect urimust be an HTTPS/SSL URI.</code>
で失敗していたので、
<code>https</code> の URL に変更するか、
<code>config/initializers/doorkeeper.rb</code> で
<code>force_ssl_in_redirect_uri false</code>
にする必要がありました。</p>
<h2>Missing column: <code>applications.scopes</code></h2>
<p>テストを実行したときに</p>
<pre><code>[doorkeeper] Missing column: `applications.scopes`. If you are using ActiveRecord run `rails generate doorkeeper:application_scopes && rake db:migrate` to add it.
</code></pre>
<p>というメッセージが出るので、メッセージ通り
<code>rails generate doorkeeper:application_scopes && rake db:migrate</code>
で追加しました。</p>
</div>
<!-- zenback_body_end -->
<footer>
<p class="meta">
<span class="byline author vcard">Posted by <span class="fn">Kazuhiro NISHIYAMA</span></span>
<time class='entry-date' datetime='2014-12-18T16:18:00+09:00'><span class='date'><span class='date-month'>Dec</span> <span class='date-day'>18</span><span class='date-suffix'>th</span>, <span class='date-year'>2014</span></span> <span class='time'>4:18 pm</span></time>
<span class="categories">
<a class='category' href='/blog/categories/doorkeeper/'>doorkeeper</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/ruby/'>ruby</a>
</span>
</p>
<div class="sharing">
</div>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- footer -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4711975605457723"
data-ad-slot="4115794291"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p class="meta">
<a class="basic-alignment left" href="/blog/2014-12-17-rubymotion-mokumoku-osaka.html" title="Previous Post: 第 18 回 RubyMotion もくもく会 in Osaka に参加した">« 第 18 回 RubyMotion もくもく会 in Osaka に参加した</a>
<a class="basic-alignment right" href="/blog/2014-12-30-ruby-crawler.html" title="Next Post: Rubyによるクローラー開発技法を読んだ">Rubyによるクローラー開発技法を読んだ »</a>
</p>
</footer>
</article>
<section>
<!-- X:S ZenBackWidget --><div id="zenback-widget-loader"></div><script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var r=Math.ceil((new Date()*1)*Math.random());var j=d.createElement("script");j.id=i;j.async=true;j.src="//w.zenback.jp/v1/?base_uri=http%3A//blog.n-z.jp/&nsid=122901358100652638%3A%3A122901381991399941&rand="+r;d.body.appendChild(j);}}(document,"zenback-widget-js");</script><!-- X:E ZenBackWidget -->
</section>
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite"><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
</section>
</div>
<aside class="sidebar">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar -->
<ins class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-4711975605457723"
data-ad-slot="4210402292"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<section>
<h1>About Me</h1>
<img src="/favicon.png" style="float:right">
<p>
<a href="http://rubycommitters.org/">Ruby のコミッター</a>とかやってます。
フルスタックエンジニア(って何?)かもしれません。
</p>
<script data-gittip-username="znz"
data-gittip-widget="button"
src="//gttp.co/v1.js"></script>
</section>
<script language="javascript" type="text/javascript" src="http://b.hatena.ne.jp/js/widget.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript">
Hatena.BookmarkWidget.url = "http://blog.n-z.jp/";
Hatena.BookmarkWidget.title = "人気エントリー";
Hatena.BookmarkWidget.sort = "count";
Hatena.BookmarkWidget.width = 0;
Hatena.BookmarkWidget.num = 6;
Hatena.BookmarkWidget.theme = "default";
Hatena.BookmarkWidget.load();
</script>
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2015-05-09-amagasakirb.html">5月9日 アンダースタンディング コンピュテーション読書会 第3回(兵庫県)に参加しました</a>
</li>
<li class="post">
<a href="/blog/2015-05-03-lilo-tokaidolug.html">LILO & 東海道らぐ・オフラインミーティング(2015/05/03)に参加しました</a>
</li>
<li class="post">
<a href="/blog/2015-04-25-rubykansai66.html">第66回 Ruby関西 勉強会に参加した</a>
</li>
<li class="post">
<a href="/blog/2015-04-20-sakura-vps-dokku.html">さくらのVPSにdokkuをdebで入れてみた</a>
</li>
<li class="post">
<a href="/blog/2015-04-18-dokku.html">dokku 0.3.17 に Ruby on Rails アプリをデプロイしてみた</a>
</li>
</ul>
</section>
<section>
<h1>Tag Cloud</h1>
<span id="tag-cloud"><a href='/blog/categories/alsa' style='font-size: 101.57894736842105%'>alsa(2)</a> <a href='/blog/categories/amagasakirb' style='font-size: 109.47368421052632%'>amagasakirb(12)</a> <a href='/blog/categories/ansible' style='font-size: 107.10526315789474%'>ansible(9)</a> <a href='/blog/categories/anyenv' style='font-size: 100.78947368421052%'>anyenv(1)</a> <a href='/blog/categories/authorization' style='font-size: 100.78947368421052%'>authorization(1)</a> <a href='/blog/categories/book' style='font-size: 101.57894736842105%'>book(2)</a> <a href='/blog/categories/boot2docker' style='font-size: 103.94736842105263%'>boot2docker(5)</a> <a href='/blog/categories/bootstrap' style='font-size: 100.78947368421052%'>bootstrap(1)</a> <a href='/blog/categories/bts' style='font-size: 100.78947368421052%'>bts(1)</a> <a href='/blog/categories/capistrano' style='font-size: 100.78947368421052%'>capistrano(1)</a> <a href='/blog/categories/cdr' style='font-size: 102.36842105263158%'>cdr(3)</a> <a href='/blog/categories/certification' style='font-size: 100.78947368421052%'>certification(1)</a> <a href='/blog/categories/coffeescript' style='font-size: 101.57894736842105%'>coffeescript(2)</a> <a href='/blog/categories/community' style='font-size: 102.36842105263158%'>community(3)</a> <a href='/blog/categories/debian' style='font-size: 119.73684210526315%'>debian(25)</a> <a href='/blog/categories/devise' style='font-size: 103.94736842105263%'>devise(5)</a> <a href='/blog/categories/dkms' style='font-size: 100.78947368421052%'>dkms(1)</a> <a href='/blog/categories/docker' style='font-size: 112.63157894736842%'>docker(16)</a> <a href='/blog/categories/dokku' style='font-size: 103.15789473684211%'>dokku(4)</a> <a href='/blog/categories/doorkeeper' style='font-size: 103.15789473684211%'>doorkeeper(4)</a> <a href='/blog/categories/drb' style='font-size: 100.78947368421052%'>drb(1)</a> <a href='/blog/categories/elscreen' style='font-size: 100.78947368421052%'>elscreen(1)</a> <a href='/blog/categories/emacs' style='font-size: 106.3157894736842%'>emacs(8)</a> <a href='/blog/categories/event' style='font-size: 146.57894736842104%'>event(59)</a> <a href='/blog/categories/fluentd' style='font-size: 100.78947368421052%'>fluentd(1)</a> <a href='/blog/categories/gem' style='font-size: 103.15789473684211%'>gem(4)</a> <a href='/blog/categories/ghq' style='font-size: 101.57894736842105%'>ghq(2)</a> <a href='/blog/categories/git' style='font-size: 103.94736842105263%'>git(5)</a> <a href='/blog/categories/github' style='font-size: 105.52631578947368%'>github(7)</a> <a href='/blog/categories/go' style='font-size: 100.78947368421052%'>go(1)</a> <a href='/blog/categories/gpg' style='font-size: 100.78947368421052%'>gpg(1)</a> <a href='/blog/categories/haml' style='font-size: 100.78947368421052%'>haml(1)</a> <a href='/blog/categories/heroku' style='font-size: 102.36842105263158%'>heroku(3)</a> <a href='/blog/categories/homebrew' style='font-size: 105.52631578947368%'>homebrew(7)</a> <a href='/blog/categories/html5' style='font-size: 102.36842105263158%'>html5(3)</a> <a href='/blog/categories/ime' style='font-size: 102.36842105263158%'>ime(3)</a> <a href='/blog/categories/ipsec' style='font-size: 100.78947368421052%'>ipsec(1)</a> <a href='/blog/categories/irb' style='font-size: 100.78947368421052%'>irb(1)</a> <a href='/blog/categories/isbn' style='font-size: 100.78947368421052%'>isbn(1)</a> <a href='/blog/categories/javascript' style='font-size: 103.15789473684211%'>javascript(4)</a> <a href='/blog/categories/jenkins' style='font-size: 100.78947368421052%'>jenkins(1)</a> <a href='/blog/categories/jquery' style='font-size: 100.78947368421052%'>jquery(1)</a> <a href='/blog/categories/jquery-mobile' style='font-size: 101.57894736842105%'>jquery-mobile(2)</a> <a href='/blog/categories/jquery-ui' style='font-size: 100.78947368421052%'>jquery-ui(1)</a> <a href='/blog/categories/jus' style='font-size: 102.36842105263158%'>jus(3)</a> <a href='/blog/categories/k-of' style='font-size: 101.57894736842105%'>k-of(2)</a> <a href='/blog/categories/kansaidebian' style='font-size: 103.94736842105263%'>kansaidebian(5)</a> <a href='/blog/categories/kernelvm' style='font-size: 100.78947368421052%'>kernelvm(1)</a> <a href='/blog/categories/l10n' style='font-size: 100.78947368421052%'>l10n(1)</a> <a href='/blog/categories/land-of-lisp' style='font-size: 103.15789473684211%'>land-of-lisp(4)</a> <a href='/blog/categories/lilo' style='font-size: 103.15789473684211%'>lilo(4)</a> <a href='/blog/categories/linux' style='font-size: 111.84210526315789%'>linux(15)</a> <a href='/blog/categories/live' style='font-size: 102.36842105263158%'>live(3)</a> <a href='/blog/categories/lxc' style='font-size: 100.78947368421052%'>lxc(1)</a> <a href='/blog/categories/lxcjp' style='font-size: 101.57894736842105%'>lxcjp(2)</a> <a href='/blog/categories/mail' style='font-size: 100.78947368421052%'>mail(1)</a> <a href='/blog/categories/mailman' style='font-size: 101.57894736842105%'>mailman(2)</a> <a href='/blog/categories/mavericks' style='font-size: 103.15789473684211%'>mavericks(4)</a> <a href='/blog/categories/memcached' style='font-size: 100.78947368421052%'>memcached(1)</a> <a href='/blog/categories/milter-manager' style='font-size: 100.78947368421052%'>milter-manager(1)</a> <a href='/blog/categories/mojibake' style='font-size: 100.78947368421052%'>mojibake(1)</a> <a href='/blog/categories/mysql' style='font-size: 101.57894736842105%'>mysql(2)</a> <a href='/blog/categories/nadoka' style='font-size: 100.78947368421052%'>nadoka(1)</a> <a href='/blog/categories/oauth2' style='font-size: 103.15789473684211%'>oauth2(4)</a> <a href='/blog/categories/octopress' style='font-size: 104.73684210526315%'>octopress(6)</a> <a href='/blog/categories/omniauth' style='font-size: 101.57894736842105%'>omniauth(2)</a> <a href='/blog/categories/openssl' style='font-size: 101.57894736842105%'>openssl(2)</a> <a href='/blog/categories/osx' style='font-size: 122.89473684210526%'>osx(29)</a> <a href='/blog/categories/owncloud' style='font-size: 101.57894736842105%'>owncloud(2)</a> <a href='/blog/categories/packer' style='font-size: 100.78947368421052%'>packer(1)</a> <a href='/blog/categories/passenger' style='font-size: 100.78947368421052%'>passenger(1)</a> <a href='/blog/categories/peco' style='font-size: 100.78947368421052%'>peco(1)</a> <a href='/blog/categories/postfix' style='font-size: 101.57894736842105%'>postfix(2)</a> <a href='/blog/categories/postgresql' style='font-size: 102.36842105263158%'>postgresql(3)</a> <a href='/blog/categories/pundit' style='font-size: 100.78947368421052%'>pundit(1)</a> <a href='/blog/categories/pyenv' style='font-size: 100.78947368421052%'>pyenv(1)</a> <a href='/blog/categories/r' style='font-size: 102.36842105263158%'>r(3)</a> <a href='/blog/categories/rabbit' style='font-size: 101.57894736842105%'>rabbit(2)</a> <a href='/blog/categories/rails' style='font-size: 127.63157894736842%'>rails(35)</a> <a href='/blog/categories/ransack' style='font-size: 100.78947368421052%'>ransack(1)</a> <a href='/blog/categories/rbenv' style='font-size: 103.15789473684211%'>rbenv(4)</a> <a href='/blog/categories/redmine' style='font-size: 101.57894736842105%'>redmine(2)</a> <a href='/blog/categories/rspec' style='font-size: 100.78947368421052%'>rspec(1)</a> <a href='/blog/categories/rsyslog' style='font-size: 100.78947368421052%'>rsyslog(1)</a> <a href='/blog/categories/rubima' style='font-size: 100.78947368421052%'>rubima(1)</a> <a href='/blog/categories/ruby' style='font-size: 160.0%'>ruby(76)</a> <a href='/blog/categories/rubykaigi' style='font-size: 100.78947368421052%'>rubykaigi(1)</a> <a href='/blog/categories/rubykansai' style='font-size: 104.73684210526315%'>rubykansai(6)</a> <a href='/blog/categories/rubymotion' style='font-size: 114.21052631578948%'>rubymotion(18)</a> <a href='/blog/categories/security' style='font-size: 102.36842105263158%'>security(3)</a> <a href='/blog/categories/shell' style='font-size: 103.15789473684211%'>shell(4)</a> <a href='/blog/categories/slim' style='font-size: 100.78947368421052%'>slim(1)</a> <a href='/blog/categories/ssh' style='font-size: 100.78947368421052%'>ssh(1)</a> <a href='/blog/categories/sylpheed' style='font-size: 100.78947368421052%'>sylpheed(1)</a> <a href='/blog/categories/td2planet' style='font-size: 100.78947368421052%'>td2planet(1)</a> <a href='/blog/categories/tty' style='font-size: 103.15789473684211%'>tty(4)</a> <a href='/blog/categories/ubuntu' style='font-size: 116.57894736842105%'>ubuntu(21)</a> <a href='/blog/categories/upstart' style='font-size: 101.57894736842105%'>upstart(2)</a> <a href='/blog/categories/usp' style='font-size: 100.78947368421052%'>usp(1)</a> <a href='/blog/categories/vagrant' style='font-size: 105.52631578947368%'>vagrant(7)</a> <a href='/blog/categories/vagrantcloud' style='font-size: 101.57894736842105%'>vagrantcloud(2)</a> <a href='/blog/categories/virtualbox' style='font-size: 101.57894736842105%'>virtualbox(2)</a> <a href='/blog/categories/weechat' style='font-size: 100.78947368421052%'>weechat(1)</a> <a href='/blog/categories/yaml' style='font-size: 100.78947368421052%'>yaml(1)</a> <a href='/blog/categories/zabbix' style='font-size: 101.57894736842105%'>zabbix(2)</a> <a href='/blog/categories/zsh' style='font-size: 110.26315789473685%'>zsh(13)</a> </span>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating...</li>
</ul>
<a href="https://github.com/znz">@znz</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'znz',
count: 3,
skip_forks: false,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2015 - Kazuhiro NISHIYAMA -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'znzblog';
// var disqus_developer = 1;
var disqus_identifier = 'http://blog.n-z.jp/blog/2014-12-18-doorkeeper-gem-1-to-2.html';
var disqus_url = 'http://blog.n-z.jp/blog/2014-12-18-doorkeeper-gem-1-to-2.html';
var disqus_script = 'embed.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</body>
</html>