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 +4 -4
- data/README.md +3 -3
- data/lib/rack_entra_id_auth/middleware.rb +5 -5
- data/lib/rack_entra_id_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5c12f2b175e365fc0ff658d959d06eddaf1dbc351c9dcad20fd3f39fa793367
|
4
|
+
data.tar.gz: 3e606363ff48788399382c8efe96d2f4f25f8ab22b0986a5854b94dabe434967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f589c0553fc36300a871be8715d03048ba49d7adbb34956623db37cb67cd2c03ae7547b7b3f625afee2d49bbe5edc0a22e2d94139857d3048295a3eba2d0603f
|
7
|
+
data.tar.gz: 9dad364d0e15248feafb04594da89ceac0716ab48c7c2e530275b4509c29eba69ba26a8e81bdb6f84d7cface59f5bcb71cd6480d8b944163ed0bc063ade18e08
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
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/
|
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]/
|
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
|
-
|
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')
|
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.
|
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.
|
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:
|