sinatra-google-auth 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra/google-auth.rb +2 -1
- data/lib/sinatra/google-auth/version.rb +1 -1
- metadata +4 -4
data/lib/sinatra/google-auth.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'omniauth-google-apps'
|
2
2
|
require 'openid/store/filesystem'
|
3
|
+
require 'securerandom'
|
3
4
|
|
4
5
|
module Sinatra
|
5
6
|
module GoogleAuth
|
@@ -45,7 +46,7 @@ module Sinatra
|
|
45
46
|
end
|
46
47
|
|
47
48
|
def self.secret
|
48
|
-
ENV['SESSION_SECRET'] || ENV['SECURE_KEY'] ||
|
49
|
+
ENV['SESSION_SECRET'] || ENV['SECURE_KEY'] || SecureRandom.hex(64)
|
49
50
|
end
|
50
51
|
|
51
52
|
def self.registered(app)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-google-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-google-apps
|
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
segments:
|
80
80
|
- 0
|
81
|
-
hash:
|
81
|
+
hash: 1806973702613227217
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
segments:
|
89
89
|
- 0
|
90
|
-
hash:
|
90
|
+
hash: 1806973702613227217
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
93
|
rubygems_version: 1.8.23
|