grnds-sso 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddb4c8c687ce1b47dc636537155a39a3e15162e1
4
- data.tar.gz: daf7628fb44d0f7f1420a15b113eec8a4c7899b3
3
+ metadata.gz: 363b9acfd75dcbd777166873805d785a0eb19fd1
4
+ data.tar.gz: 9939136180c4e0d21c3ca5ba7cddf39d9eed261b
5
5
  SHA512:
6
- metadata.gz: 4c850adfe04cf8a13f63fc6014ba00e818b5ad6c729c8d27ed2af256a9536e85a577a7ab73c0c2cf569df0a50a024533a74402cdf4faff19018ab480ca1c0e4a
7
- data.tar.gz: 4c89b94fc9a3a39a6f24d7814348447d3f7ad545f3595375052db89875501a0e2088d906647193f0bd704e65505ea579b45f352f82e3e230ca6664ba82f20e86
6
+ metadata.gz: 32868fb9e03280a64c37eca7b186df87384767c9b62ddbc31ff93e7355b53b61d02bd36bf7e0a33d22f2b2c7e048961f5a70f9116d8f137154db802195da7631
7
+ data.tar.gz: 1ab8833a8686b3151d2a34c20105ee51dd181382eab18839920d79770c150bad0850f5d8ee943ad632411549aee58b26e23d374e7c5254dc25b07d37fea53763
data/README.md CHANGED
@@ -4,7 +4,7 @@ grnds-sso
4
4
 
5
5
  # Adding SSO to your application.
6
6
 
7
- - copy the sample config(below) to your app at `config/initializers/grnds_sso.rb`
7
+ - copy the sample config(below) to your app at `config/initializers/grnds_sso.rb` (check existing integrations for clearer or DRYer implementations):
8
8
 
9
9
  ```
10
10
  Rails.application.config.action_dispatch.cookies_serializer = :marshal
@@ -12,14 +12,14 @@ Rails.application.config.action_dispatch.cookies_serializer = :marshal
12
12
  Grnds::Sso.configure do |config|
13
13
  case Rails.env
14
14
  when 'development', 'test'
15
- config.base_site = 'http://localhost:3000'
16
- when 'uat'
17
- config.base_site = 'https://www.uat.grandroundshealth.com'
15
+ config.base_site = 'http://localhost:10001'
18
16
  when 'production'
19
17
  config.base_site = 'https://www.grandroundshealth.com'
18
+ else
19
+ config.base_site = "https://www.#{Rails.env}.grandroundshealth.com"
20
20
  end
21
- config.sign_in_post_fix = '/app/users/sign_in'
22
- config.sign_out_post_fix = '/app/users/sign_out'
21
+ config.sign_in_post_fix = '/users/sign_in'
22
+ config.sign_out_post_fix = '/users/sign_out'
23
23
  end
24
24
  ```
25
25
 
@@ -28,9 +28,9 @@ end
28
28
  if Rails.env == 'test' or Rails.env == 'development'
29
29
  Frick::Application.config.session_store :cookie_store, key: "_GrandRounds_session_#{Rails.env}", :domain => :all
30
30
  elsif Rails.env == 'production'
31
- Frick::Application.config.session_store :cookie_store, key: "_GrandRounds_session", :domain => ".#{ConsultingMD::Application.config.website_domain}"
31
+ Frick::Application.config.session_store :cookie_store, key: "_GrandRounds_session", :domain => ".#{Frick::Application.config.website_domain}"
32
32
  else
33
- Frick::Application.config.session_store :cookie_store, key: "_GrandRounds_session_#{Rails.env}", :domain => ".#{ConsultingMD::Application.config.website_domain}"
33
+ Frick::Application.config.session_store :cookie_store, key: "_GrandRounds_session_#{Rails.env}", :domain => ".#{Frick::Application.config.website_domain}"
34
34
  end
35
35
  ```
36
36
 
@@ -1,5 +1,5 @@
1
1
  module Grnds
2
2
  module Sso
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
  end
@@ -15,12 +15,8 @@ module Grnds::Sso
15
15
  def initialize
16
16
  self.require_login = (Rails.env != 'development')
17
17
 
18
- case Rails.env
19
- when 'development', 'test' then
20
- self.pattern = LOCALHOST
21
- else
22
- self.pattern = VPN
23
- end
18
+ # Our deployments use nginx in a way that hides the source IP address
19
+ self.pattern = LOCALHOST
24
20
  end
25
21
 
26
22
  def configure
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grnds-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ahn
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  version: '0'
47
47
  requirements: []
48
48
  rubyforge_project:
49
- rubygems_version: 2.4.3
49
+ rubygems_version: 2.2.2
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: SSO for Grand Rounds