rack-ninja_auth 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/ninja_auth.rb +1 -1
- data/lib/rack/ninja_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 174579d995ee1be8f7a9409c88b1131f7bf14e1c
|
4
|
+
data.tar.gz: a31a7e284cb8377f9ed5c4cc08d199abe75d3af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312395898d8fa5206fae25b966c9a5d0c027826a6a576136a382f3e70481ee825ff563fe3b5157ba8651e74854a83e939f3519bf2263c389535ebd74e662e201
|
7
|
+
data.tar.gz: 306a92b1ccb214bf54216a68d0760b367cfe01d0320bb76722558370b23a5e9ed658566705a510e3ca0e51570a27af40973eaa8307caf1cc90d6d7b0e4e118f5
|
data/lib/rack/ninja_auth.rb
CHANGED
@@ -13,12 +13,12 @@ module Rack
|
|
13
13
|
expire_after: 2592000,
|
14
14
|
redis_server: ENV['NINJA_REDIS_URL'] || 'redis://127.0.0.1:6379/0/rack:ninja_auth'
|
15
15
|
|
16
|
-
raise "Please set NINJA_GOOGLE_CLIENT_ID and NINJA_GOOGLE_CLIENT_SECRET to use NinjaAuth" unless ENV["NINJA_GOOGLE_CLIENT_ID"] && ENV["NINJA_GOOGLE_CLIENT_SECRET"]
|
17
16
|
use OmniAuth::Builder do
|
18
17
|
provider :google_oauth2, ENV["NINJA_GOOGLE_CLIENT_ID"], ENV["NINJA_GOOGLE_CLIENT_SECRET"]
|
19
18
|
end
|
20
19
|
|
21
20
|
def initialize(app, email_matcher = //, not_allowed_file = nil)
|
21
|
+
puts "Please set NINJA_GOOGLE_CLIENT_ID and NINJA_GOOGLE_CLIENT_SECRET to use NinjaAuth" unless ENV["NINJA_GOOGLE_CLIENT_ID"] && ENV["NINJA_GOOGLE_CLIENT_SECRET"]
|
22
22
|
@main_app = app
|
23
23
|
@email_matcher = email_matcher
|
24
24
|
@not_allowed_file = not_allowed_file || ::File.expand_path('../../../views/401.html', __FILE__)
|