0.01
No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for Hatena
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.2.2
~> 2.9

Runtime

 Project Readme

Omniauth Hatena

A Strategy to auth with Hatena in OmniAuth.

Get your ConsumerKey here:http://developer.hatena.ne.jp/ja/documents/auth/apis/oauth/consumer

Usage

Add this line to your app's Gemfile:

gem 'omniauth-hatena'

And add the following to your config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :hatena, "consumer_key", "consumer_secret"
end

You can specify scope like the following

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :hatena, "consumer_key", "consumer_secret", :scope => "write_public, read_private"
end

Regardless of what you specify, scope contains "read_public" automatically.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request