rack_entra_id_auth 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 49047b15ce1a63b8d78470a9f3470642bc1097ef848af57c588a105583ac5c08
4
- data.tar.gz: 831a559681d4e4f17b837796bc670d93bbec3c148ac0f9ad868a72a2631df53c
3
+ metadata.gz: d5c12f2b175e365fc0ff658d959d06eddaf1dbc351c9dcad20fd3f39fa793367
4
+ data.tar.gz: 3e606363ff48788399382c8efe96d2f4f25f8ab22b0986a5854b94dabe434967
5
5
  SHA512:
6
- metadata.gz: b6e06a56cad6e71aa29e1191cec1a5e6d1c3f3a6c1080d2ed2fd2291de3af5ad3c0a41de393b72c26fb117b42490269a6c7b2eaeb65cb4e03fbf6a9cb5ee0ca5
7
- data.tar.gz: a685bb6f5f8dae75f9153acfcb403594f8be4cd1ab1621b7abca4cbf97a04a55b53d4ce70c10a7b0803587816c3fbd6732d24b9ce65ebebbd1bdd62835ad9ba1
6
+ metadata.gz: f589c0553fc36300a871be8715d03048ba49d7adbb34956623db37cb67cd2c03ae7547b7b3f625afee2d49bbe5edc0a22e2d94139857d3048295a3eba2d0603f
7
+ data.tar.gz: 9dad364d0e15248feafb04594da89ceac0716ab48c7c2e530275b4509c29eba69ba26a8e81bdb6f84d7cface59f5bcb71cd6480d8b944163ed0bc063ade18e08
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.1'
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Susco
@@ -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.1
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: