rack_entra_id_auth 1.0.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49047b15ce1a63b8d78470a9f3470642bc1097ef848af57c588a105583ac5c08
4
- data.tar.gz: 831a559681d4e4f17b837796bc670d93bbec3c148ac0f9ad868a72a2631df53c
3
+ metadata.gz: 5423c7efc63ef1114c69f4fdf4ba39b36a2f2aaa51a0aa9edb040d22d3f8034d
4
+ data.tar.gz: 96726463fbf27c7a11a7d5bd725ed47a476efc76165b00730b0ee1e1974d0358
5
5
  SHA512:
6
- metadata.gz: b6e06a56cad6e71aa29e1191cec1a5e6d1c3f3a6c1080d2ed2fd2291de3af5ad3c0a41de393b72c26fb117b42490269a6c7b2eaeb65cb4e03fbf6a9cb5ee0ca5
7
- data.tar.gz: a685bb6f5f8dae75f9153acfcb403594f8be4cd1ab1621b7abca4cbf97a04a55b53d4ce70c10a7b0803587816c3fbd6732d24b9ce65ebebbd1bdd62835ad9ba1
6
+ metadata.gz: 5f68e45441641aea9888b1daa813b90f88da1e9b38bae0dbab7cb57723eb195b4e2b2a2843128a4f1069655f02b445b5735abf3a681649395c08d716c70504cd
7
+ data.tar.gz: 97684c1d606dea307c9e3b86008c4b480447571c325c7804dbd72897be169c5e8bc3109038c87c3eb15efd845023b408e7fc85e8a0863d4da59ac9101b2fd9ba
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # EntraIdActiveRecordSessionStore
1
+ # RackEntraIdAuth
2
2
 
3
3
  TODO: Delete this and the text below, and describe your gem
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/entra_id_active_record_session_store`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rack_entra_id_auth`. To experiment with that code, run `bin/console` for an interactive prompt.
6
6
 
7
7
  ## Installation
8
8
 
@@ -28,7 +28,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
28
 
29
29
  ## Contributing
30
30
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/entra_id_active_record_session_store.
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rack_entra_id_auth.
32
32
 
33
33
  ## License
34
34
 
@@ -29,7 +29,7 @@ module RackEntraIdAuth
29
29
  log(env, 'Destroying session…')
30
30
 
31
31
  # destroy session in case single logout fails
32
- destroy_session()
32
+ destroy_session(request.session)
33
33
 
34
34
  relay_state_url = request.params['relay_state'] ||
35
35
  RackEntraIdAuth.config.logout_relay_state_url ||
@@ -100,7 +100,7 @@ module RackEntraIdAuth
100
100
  log(env, 'Destroying session and sending logout response to Entra ID…')
101
101
 
102
102
  # destroy the session
103
- destroy_session()
103
+ destroy_session(request.session)
104
104
 
105
105
  response_url = entra_id_request.slo_response_url(
106
106
  request_id: logout_request.id,
@@ -137,7 +137,7 @@ module RackEntraIdAuth
137
137
 
138
138
  # session should already be destroyed from SP initiated logout/single
139
139
  # logout request, but just to be safe…
140
- destroy_session()
140
+ destroy_session(request.session)
141
141
 
142
142
  return found_redirect_response(
143
143
  entra_id_request.relay_state_url,
@@ -160,8 +160,8 @@ module RackEntraIdAuth
160
160
 
161
161
  protected
162
162
 
163
- def destroy_session ()
164
- request.session.send(request.session.respond_to?(:destroy) ? :destroy : :clear)
163
+ def destroy_session (session)
164
+ session.send(session.respond_to?(:destroy) ? :destroy : :clear)
165
165
  end
166
166
 
167
167
  def found_redirect_response (url, message = 'Redirecting to URL')
@@ -1,3 +1,3 @@
1
1
  module RackEntraIdAuth
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_entra_id_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Susco
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-saml
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ licenses:
119
119
  - MIT
120
120
  metadata:
121
121
  bug_tracker_uri: https://github.com/dsusco/rack_entra_id_auth/issues
122
- changelog_uri: https://github.com/dsusco/rack_entra_id_auth/releases/tag/v1.0.0
122
+ changelog_uri: https://github.com/dsusco/rack_entra_id_auth/releases/tag/v1.0.2
123
123
  homepage_uri: https://github.com/dsusco/rack_entra_id_auth
124
124
  source_code_uri: https://github.com/dsusco/rack_entra_id_auth
125
125
  post_install_message: