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 +4 -4
- data/README.md +8 -8
- data/lib/grnds/sso/version.rb +1 -1
- data/lib/grnds/sso/vpn_constraint.rb +2 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363b9acfd75dcbd777166873805d785a0eb19fd1
|
4
|
+
data.tar.gz: 9939136180c4e0d21c3ca5ba7cddf39d9eed261b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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 = '/
|
22
|
-
config.sign_out_post_fix = '/
|
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 => ".#{
|
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 => ".#{
|
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
|
|
data/lib/grnds/sso/version.rb
CHANGED
@@ -15,12 +15,8 @@ module Grnds::Sso
|
|
15
15
|
def initialize
|
16
16
|
self.require_login = (Rails.env != 'development')
|
17
17
|
|
18
|
-
|
19
|
-
|
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.
|
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.
|
49
|
+
rubygems_version: 2.2.2
|
50
50
|
signing_key:
|
51
51
|
specification_version: 4
|
52
52
|
summary: SSO for Grand Rounds
|