A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ZeroOneStudio/omniauth-namba below:

ZeroOneStudio/omniauth-namba: Authenticate to Namba using OAuth.

This gem contains the Namba.kg strategy for OmniAuth. Namba.kg uses the OAuth 1.0a flow.

Add the strategy to your Gemfile:

For a Rails application you'd now create an initializer config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :namba, 'key', 'secret', locale: "kg"
end

Or for a Rack application:

use OmniAuth::Builder do
  provider :namba, "key", "secret", locale: "kg"
end

If you use omniauth with Devise just add configuration to devise.rb initializer:

Devise.setup do |config|
  config.omniauth :namba, "key", "secret", locale: "kg"   
end     

Use "net" locale if you want to access namba.net API. "kg" is the default locale so you can simply use provider :namba, "key", "secret"

{
  :status => "I'm Chuck and I love Namba",
  :login => "chuck_norris",
  :firstname => "Chuck",
  :lastname => "Norris",
  :birthdate => "yyy-mm-dd 00:00:00",
  :sex => "0",
  :avatar => "0000000,0000000,0000000"
}

Detailed description of each field goes here.

Many thanks to @puzanov for active promotion.

MIT License. Copyright (c) 2012-2014 ZERO.ONE


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4