saml_camel 1.0.1 → 1.0.2
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 +3 -2
- data/app/models/saml_camel/shib.rb +3 -1
- data/lib/saml_camel/version.rb +1 -1
- data/lib/tasks/saml_camel_tasks.rake +2 -1
- 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: eaa10069e1db4964516ddb40334b33aacb5565ca
|
|
4
|
+
data.tar.gz: fec0501aa4a0b2d778d3ed78193ccacc0e064aa6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f999dbb2683754347dd79f30a0351ced476e5ab87c149d71f3344080ac865e84fab34ad4cb0aad05976c26fca14985e0fd89d7b8656c9fe4f6fbe9c8c08f842a
|
|
7
|
+
data.tar.gz: 434a08a6955a4faceac9d7fa09d57f391002f22d22774eedaf371e53869c87ad1a4c6613a281300e6191539ae5554d89a556027436a7d023ed40543b9cd7b6e1
|
data/README.md
CHANGED
|
@@ -39,7 +39,7 @@ $ bundle
|
|
|
39
39
|
|
|
40
40
|
**NOTE:** use the cache_store most appropriate for your situation. It may make more sense to use a file store, or a redis server. For example it may not make sense to cache in memory in production. You can read more about rails caching behavior here http://guides.rubyonrails.org/caching_with_rails.html
|
|
41
41
|
|
|
42
|
-
2. run `rake saml_camel:generate_saml` to generate metadata files for
|
|
42
|
+
2. run `rake saml_camel:generate_saml` to generate metadata files for the development, test, and production environment. You can also specify a custom environment like this `rake saml_camel:generate_saml environment=acceptance`
|
|
43
43
|
|
|
44
44
|
**Note: these steps will use development as an example, if you use separate metadata per environment, you will repeat each step for your chosen environment**
|
|
45
45
|
|
|
@@ -103,7 +103,8 @@ Identity Provider(idp) to recognize your app. Typically it should take the form
|
|
|
103
103
|
"sp_session_lifetime": 8,
|
|
104
104
|
"test_auth_path": true,
|
|
105
105
|
"saml_logging": true,
|
|
106
|
-
"debug": false
|
|
106
|
+
"debug": false,
|
|
107
|
+
"shib_module": false
|
|
107
108
|
},
|
|
108
109
|
"attribute_map": {
|
|
109
110
|
"urn:oid:1.3.6.1.4.1.5923.1.1.1.9": "eduPersonScopedAffiliation",
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
module SamlCamel
|
|
4
4
|
# handle shib attributes
|
|
5
5
|
class Shib
|
|
6
|
-
|
|
6
|
+
if SP_SETTINGS.dig('settings','shib_module')
|
|
7
|
+
ATTRIBUTE_MAP = JSON.parse(File.read('config/saml/shibboleth.json'))
|
|
8
|
+
end
|
|
7
9
|
|
|
8
10
|
def self.attributes(request)
|
|
9
11
|
attrs = {}
|
data/lib/saml_camel/version.rb
CHANGED
|
@@ -73,7 +73,8 @@ tA6SX0infqNRyPRNJK+bnQd1yOP4++tjD/lAPE+5tiD/waI3fArt43ZE/qp7pYMS
|
|
|
73
73
|
sp_session_lifetime: 8,
|
|
74
74
|
test_auth_path: true,
|
|
75
75
|
saml_logging: true,
|
|
76
|
-
debug: false
|
|
76
|
+
debug: false,
|
|
77
|
+
shib_module: false
|
|
77
78
|
},
|
|
78
79
|
'attribute_map': {
|
|
79
80
|
'urn:oid:1.3.6.1.4.1.5923.1.1.1.9': 'eduPersonScopedAffiliation',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saml_camel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 'Danai Adkisson '
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|