liuhenry / omniauth-googlefederated Goto Github PK
View Code? Open in Web Editor NEWGoogle OAuth/OpenID Federated Login strategy for OmniAuth 1.0
License: MIT License
Google OAuth/OpenID Federated Login strategy for OmniAuth 1.0
License: MIT License
I'm having trouble using the GoogleFederated strategy in my app.
/Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:74:in `require': cannot load such file -- omniauth/googlefederated (LoadError)
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:74:in `rescue in block in require'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:62:in `block in require'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@global/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /Users/readwl/workspace/loopbac/config/application.rb:13:in `<top (required)>'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@loopbac/gems/railties-3.2.11/lib/rails/commands.rb:39:in `require'
from /Users/readwl/.rvm/gems/ruby-1.9.3-p385@loopbac/gems/railties-3.2.11/lib/rails/commands.rb:39:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
My Gemfile:
source 'https://rubygems.org'
gem 'bootstrap-sass'
gem 'devise'
gem 'haml'
gem 'jquery-rails'
gem 'pg'
gem 'omniauth'
gem 'omniauth-googlefederated'
gem 'rails', '3.2.11'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'uglifier', '>= 1.0.3'
end
group :development do
gem 'heroku_san'
end
group :test do
gem 'capybara-webkit'
gem 'rspec'
gem 'rspec-rails'
gem 'shoulda-matchers'
end
My config/initializers/devise.rb
Devise.setup do |config|
...
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
#Note: If you want to be prompted for permission every time, set approval_prompt: "force", otherwise leave it empty.
config.omniauth :GoogleFederated,
:store => OpenID::Store::Filesystem.new('/tmp'),
:name => 'GoogleFederated',
:identifier => 'https://www.google.com/accounts/o8/id',
:consumer_key => GOOGLE_APP_ID,
:consumer_secret => GOOGLE_APP_SECRET,
:scope => ["http(s)://www.google.com/calendar/feeds/", "https://www.google.com/m8/feeds/"],
:require => 'omniauth-googlefederated',
:client_options => {:ssl => {:ca_file => '/usr/lib/ssl/certs/ca-certificates.crt'}}
...
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.