spid 0.16.0 → 0.16.1

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
  SHA256:
3
- metadata.gz: 7ba07f30c0e0a0f5a7e810dd65f1fa640c7c44be9821d80d3e66aa9beacd96f3
4
- data.tar.gz: 51bdce6a6796d79c084ae3c0c4ef590fee8fa09407282a083730d851f20087a4
3
+ metadata.gz: 7c1de73229206a3f51acebe2ffd176336baf6ecf7b7ab56587f2baa4338f5300
4
+ data.tar.gz: 5c39d1327255aa6f6c91f8b893ff8d0698bcd2e8476a6fb55fc85cd2cd507c6b
5
5
  SHA512:
6
- metadata.gz: 0e9bb862aa5e52e2bc9322a599f1f52905b0bfc91ac754aed5962134eeab1f4f87db3146e43a7788f5e46c34d73c0d9697c61d3e49eab81d30bd934f3f59ec11
7
- data.tar.gz: 75f930de84a75db8ea97e7651a96a6116bd2e29b8e3903e39c24d98074c952d6936700a08267605a747f97956d703acab408db4ec5875bfea98cb8b4cf1ae3db
6
+ metadata.gz: 8861c1b4c9d517f73dee139742e186e1cd96a10267ec9d73ed2987426bd65fc9832114ad41f34b00bcad05595d17e760602eb894344ff8d77f16309dda829757
7
+ data.tar.gz: aace38dd40188f84b5dabc3d4f33dbaabe0005e81f4fa47a2777d437e9032112ab25fd6b981dbd99424017349eabbcf86e0b715582c0cb626c9aa0887338f7e0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.16.1] - 2018-09-05
6
+ ### Changed
7
+ - Use login_path and logout_path instead of start_sso_path and start_slo_path
8
+
5
9
  ## [0.16.0] - 2018-09-05
6
10
  ### Added
7
11
  - Task rake for IdPs metadata fetching
@@ -123,7 +127,8 @@
123
127
  - Coveralls Integration
124
128
  - Rubygems version badge in README
125
129
 
126
- [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.16.0...HEAD
130
+ [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.16.1...HEAD
131
+ [0.16.0]: https://github.com/italia/spid-ruby/compare/v0.16.0...v0.16.1
127
132
  [0.16.0]: https://github.com/italia/spid-ruby/compare/v0.15.2...v0.16.0
128
133
  [0.15.2]: https://github.com/italia/spid-ruby/compare/v0.15.1...v0.15.2
129
134
  [0.15.1]: https://github.com/italia/spid-ruby/compare/v0.15.0...v0.15.1
@@ -5,8 +5,8 @@ module Spid
5
5
  attr_accessor :idp_metadata_dir_path
6
6
  attr_accessor :hostname
7
7
  attr_accessor :metadata_path
8
- attr_accessor :start_sso_path
9
- attr_accessor :start_slo_path
8
+ attr_accessor :login_path
9
+ attr_accessor :logout_path
10
10
  attr_accessor :acs_path
11
11
  attr_accessor :slo_path
12
12
  attr_accessor :digest_method
@@ -30,8 +30,8 @@ module Spid
30
30
  def init_endpoint
31
31
  @hostname = nil
32
32
  @metadata_path = "/spid/metadata"
33
- @start_sso_path = "/spid/login"
34
- @start_slo_path = "/spid/logout"
33
+ @login_path = "/spid/login"
34
+ @logout_path = "/spid/logout"
35
35
  @acs_path = "/spid/sso"
36
36
  @slo_path = "/spid/slo"
37
37
  @default_relay_state_path = "/"
@@ -7,9 +7,9 @@ Spid.configure do |config|
7
7
  config.private_key_pem = ENV.fetch("PRIVATE_KEY")
8
8
  config.certificate_pem = ENV.fetch("CERTIFICATE")
9
9
 
10
- config.metadata_path = "/spid/metadata"
11
- config.start_sso_path = "/spid/login"
12
- config.start_slo_path = "/spid/logout"
10
+ config.metadata_path = "/spid/metadata"
11
+ config.login_path = "/spid/login"
12
+ config.logout_path = "/spid/logout"
13
13
  config.acs_path = "/spid/sso"
14
14
  config.slo_path = "/spid/slo"
15
15
  config.default_relay_state_path = "/"
@@ -59,7 +59,7 @@ module Spid
59
59
  end
60
60
 
61
61
  def valid_path?
62
- request.path == Spid.configuration.start_sso_path
62
+ request.path == Spid.configuration.login_path
63
63
  end
64
64
 
65
65
  def relay_state
@@ -60,7 +60,7 @@ module Spid
60
60
  end
61
61
 
62
62
  def valid_path?
63
- request.path == Spid.configuration.start_slo_path
63
+ request.path == Spid.configuration.logout_path
64
64
  end
65
65
 
66
66
  def spid_session
data/lib/spid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spid
4
- VERSION = "0.16.0"
4
+ VERSION = "0.16.1"
5
5
  end
data/spid.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["davidlibrera@gmail.com"]
12
12
  spec.homepage = "https://github.com/italia/spid-ruby"
13
13
  spec.summary = "SPID (https://www.spid.gov.it) integration for ruby"
14
- spec.license = "MIT"
14
+ spec.license = "BSD-3"
15
15
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
16
  f.match(%r{^(test|spec|features)/})
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Librera
@@ -363,7 +363,7 @@ files:
363
363
  - spid.gemspec
364
364
  homepage: https://github.com/italia/spid-ruby
365
365
  licenses:
366
- - MIT
366
+ - BSD-3
367
367
  metadata:
368
368
  homepage_uri: https://github.com/italia/spid-ruby
369
369
  changelog_uri: https://github.com/italia/spid-ruby/blob/master/CHANGELOG.md