saml_idp 0.0.10 → 0.1.0

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.
data/README.md CHANGED
@@ -75,6 +75,7 @@ KEY DATA
75
75
  -----END RSA PRIVATE KEY-----
76
76
  CERT
77
77
 
78
+ # config.password = "secret_key_password"
78
79
  # config.algorithm = :sha256
79
80
  # config.organization_name = "Your Organization"
80
81
  # config.organization_url = "http://example.com"
@@ -4,6 +4,7 @@ module SamlIdp
4
4
  class Configurator
5
5
  attr_accessor :x509_certificate
6
6
  attr_accessor :secret_key
7
+ attr_accessor :password
7
8
  attr_accessor :algorithm
8
9
  attr_accessor :organization_name
9
10
  attr_accessor :organization_url
@@ -34,7 +34,7 @@ module SamlIdp
34
34
  SamlResponse.new(
35
35
  reference_id,
36
36
  response_id,
37
- issuer_uri,
37
+ opt_issuer_uri,
38
38
  principal,
39
39
  audience_uri,
40
40
  saml_request_id,
@@ -69,8 +69,13 @@ module SamlIdp
69
69
  end
70
70
  private :secret_key
71
71
 
72
+ def password
73
+ SamlIdp.config.password
74
+ end
75
+ private :password
76
+
72
77
  def encoded
73
- key = OpenSSL::PKey::RSA.new(secret_key)
78
+ key = OpenSSL::PKey::RSA.new(secret_key, password)
74
79
  Base64.encode64(key.sign(algorithm.new, raw))
75
80
  end
76
81
  private :encoded
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module SamlIdp
3
- VERSION = '0.0.10'
3
+ VERSION = '0.1.0'
4
4
  end
data/saml_idp.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  "Gemfile",
19
19
  "saml_idp.gemspec"
20
20
  ]
21
+ s.license = "LICENSE"
21
22
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
23
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
24
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_idp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -330,7 +330,8 @@ files:
330
330
  - spec/support/security_helpers.rb
331
331
  - spec/xml_security_spec.rb
332
332
  homepage: http://github.com/sportngin/saml_idp
333
- licenses: []
333
+ licenses:
334
+ - LICENSE
334
335
  post_install_message:
335
336
  rdoc_options:
336
337
  - --charset=UTF-8
@@ -344,7 +345,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
345
  version: '0'
345
346
  segments:
346
347
  - 0
347
- hash: 1099083129637231384
348
+ hash: -4057493914977189816
348
349
  required_rubygems_version: !ruby/object:Gem::Requirement
349
350
  none: false
350
351
  requirements:
@@ -353,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
354
  version: '0'
354
355
  segments:
355
356
  - 0
356
- hash: 1099083129637231384
357
+ hash: -4057493914977189816
357
358
  requirements: []
358
359
  rubyforge_project:
359
360
  rubygems_version: 1.8.25