omniauth-google-oauth2 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/sinatra.rb +3 -1
- data/lib/omniauth-google-oauth2.rb +1 -9
- data/lib/omniauth-google-oauth2/version.rb +1 -1
- metadata +3 -3
data/examples/sinatra.rb
CHANGED
@@ -9,7 +9,9 @@ require 'omniauth-google-oauth2'
|
|
9
9
|
use Rack::Session::Cookie
|
10
10
|
|
11
11
|
use OmniAuth::Builder do
|
12
|
-
provider :google_oauth2,
|
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
|
+
}
|
13
15
|
end
|
14
16
|
|
15
17
|
get '/' do
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Ellithorpe
|