omniauth-google-oauth2 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/omniauth/google_oauth2/version.rb +1 -1
- metadata +3 -4
- data/examples/sinatra.rb +0 -28
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-google-oauth2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 13
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 9
|
|
10
|
+
version: 0.0.9
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Josh Ellithorpe
|
|
@@ -62,7 +62,6 @@ files:
|
|
|
62
62
|
- Gemfile
|
|
63
63
|
- README.md
|
|
64
64
|
- Rakefile
|
|
65
|
-
- examples/sinatra.rb
|
|
66
65
|
- lib/omniauth-google-oauth2.rb
|
|
67
66
|
- lib/omniauth/google_oauth2.rb
|
|
68
67
|
- lib/omniauth/google_oauth2/version.rb
|
data/examples/sinatra.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
|
-
require 'bundler'
|
|
3
|
-
|
|
4
|
-
Bundler.setup :default, :development, :example
|
|
5
|
-
require 'sinatra'
|
|
6
|
-
require 'omniauth'
|
|
7
|
-
require 'omniauth-google-oauth2'
|
|
8
|
-
|
|
9
|
-
use Rack::Session::Cookie
|
|
10
|
-
|
|
11
|
-
use OmniAuth::Builder do
|
|
12
|
-
provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], {
|
|
13
|
-
:scope => 'https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.stream.read https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.circles.read https://www.googleapis.com/auth/plus.circles.write'
|
|
14
|
-
}
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
get '/' do
|
|
18
|
-
<<-HTML
|
|
19
|
-
<ul>
|
|
20
|
-
<li><a href='/auth/google_oauth2'>Sign in with Google</a></li>
|
|
21
|
-
</ul>
|
|
22
|
-
HTML
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
get '/auth/:provider/callback' do
|
|
26
|
-
content_type 'text/plain'
|
|
27
|
-
request.env['omniauth.auth'].info.to_hash.inspect
|
|
28
|
-
end
|