saml_camel 1.0.1 → 1.0.2

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: 10d5430e20fe2c208e8f6b5c23eb6619cab0c2a1
4
- data.tar.gz: c41a7aca05f8d811e970d49cca9b46dafdbbe3a0
3
+ metadata.gz: eaa10069e1db4964516ddb40334b33aacb5565ca
4
+ data.tar.gz: fec0501aa4a0b2d778d3ed78193ccacc0e064aa6
5
5
  SHA512:
6
- metadata.gz: c9ce2f9753fd6fe3dfc8ef4e3bd71b51d507ddc3b488f5c8a69312bc0ee739c71212e5d43e374bc603e1f0294a21a908bade01758e2609695a5550e64d4ebcd1
7
- data.tar.gz: 710161acccafad9bd900433440881c96d6bca2f392cc0320a91e3225dfd85144d9a912ece2c084608f5d23d78b661870b5343469472073f9f6820537db6b3196
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 each environment. you can also specify a custom environment like this `rake saml_camel:generate_saml environment=acceptance`
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
- ATTRIBUTE_MAP = JSON.parse(File.read('config/saml/shibboleth.json'))
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 = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlCamel
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
@@ -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.1
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-05-30 00:00:00.000000000 Z
11
+ date: 2018-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails