rails_sso 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 870097ffd20610b11d2b2818e02be874f32f7a6b
4
- data.tar.gz: 0d13485c9589191716ae0f067ecfebfdd8a6785e
3
+ metadata.gz: 0ba3ea4dd7d1d68731bff24f0c2a91562c349d1c
4
+ data.tar.gz: 8afb4fbb304f7fdda9380e2b8f8ee48171f0e545
5
5
  SHA512:
6
- metadata.gz: 9d06d4ed43b361abc3d727f5673c55f7cbcf94858993d5b3a9f349b63191fcddc7a509ca6ad1be8270c2adef37f164e1a326ae27bc29c2291061bce8f39cd590
7
- data.tar.gz: 5c9b79893b2475cad864fa469b23205327b36c0601a1ff2515d1d0992042f58c6ec4c8a5bc7ff3537a68ded052a3d1992b66bf375204939f98723cc2266bee0f
6
+ metadata.gz: 533d9f47ea4e863a0d0c3f41d581abcaa1665ed2066d0231657c5735dd9ea22b1bfe5f4c2b1fb4ae5d186c50ddf6cf640c0bad3ffd2929108d55715d43cd404f
7
+ data.tar.gz: c1dcfe6eebbfa47657c86d2b64d72c8ddd331314e914d2a17b3f5bda6cd53f5984cc09e1be2557b5516c64255c4d9c05b6ee5f0fd275b811818c8cfd611b8e00
@@ -5,5 +5,16 @@ module RailsSso
5
5
  include RailsSso::Helpers
6
6
  end
7
7
  end
8
+
9
+ initializer 'sso.omniauth', after: :load_config_initializers, before: :build_middleware_stack do |app|
10
+ if RailsSso.provider_name
11
+ app.config.middleware.use OmniAuth::Builder do
12
+ provider RailsSso.provider_name,
13
+ RailsSso.provider_key,
14
+ RailsSso.provider_secret,
15
+ callback_path: RailsSso.provider_callback_path
16
+ end
17
+ end
18
+ end
8
19
  end
9
20
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Dudulski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -106,7 +106,6 @@ files:
106
106
  - Rakefile
107
107
  - app/controllers/rails_sso/sessions_controller.rb
108
108
  - app/services/rails_sso/fetch_user.rb
109
- - config/initializers/omniauth.rb
110
109
  - config/locales/en.yml
111
110
  - config/routes.rb
112
111
  - lib/generators/rails_sso_generator.rb
@@ -1,6 +0,0 @@
1
- Rails.application.config.middleware.use OmniAuth::Builder do
2
- provider RailsSso.provider_name,
3
- RailsSso.provider_key,
4
- RailsSso.provider_secret,
5
- callback_path: RailsSso.provider_callback_path
6
- end