prx_auth-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prx_auth/rails.rb +8 -0
- data/lib/prx_auth/rails/railtie.rb +8 -8
- data/lib/prx_auth/rails/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: 42a8438aa009e38379908de19f97e3dc9646b938
|
4
|
+
data.tar.gz: d6e41ddf633b6e8b39189e3e26cd9ba540ace8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd3e13e61606e7e79d9e5ffd8859abe73d385435888d05c35184a0b5339e35f556eaa48a8633bd652a7969922b8533ca3ccac5d3bb961200925fbda75ac5666
|
7
|
+
data.tar.gz: d27de777ed43e1a8b133e84fc33d3c9ce8830c991e2f7510c27f8b720a1f0fbfc0ca6a9029764be5a631ca9cba1d01f63d60e7a4c5ec20db3aa09b447abd7ae2
|
data/lib/prx_auth/rails.rb
CHANGED
@@ -2,15 +2,15 @@ require 'rails/railtie'
|
|
2
2
|
require 'prx_auth/rails/ext/controller'
|
3
3
|
require 'rack/prx_auth'
|
4
4
|
|
5
|
-
module PrxAuth
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
5
|
+
module PrxAuth::Rails
|
6
|
+
class Railtie < ::Rails::Railtie
|
7
|
+
config.to_prepare do
|
8
|
+
ApplicationController.send(:include, PrxAuth::Rails::Controller)
|
9
|
+
end
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
initializer 'prx_auth.insert_middleware' do |app|
|
12
|
+
if PrxAuth::Rails.middleware
|
13
|
+
app.config.middleware.insert ActionDispatch::ParamsParser, Rack::PrxAuth
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|