rack_entra_id_auth 1.0.0 → 1.0.2
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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5423c7efc63ef1114c69f4fdf4ba39b36a2f2aaa51a0aa9edb040d22d3f8034d
|
4
|
+
data.tar.gz: 96726463fbf27c7a11a7d5bd725ed47a476efc76165b00730b0ee1e1974d0358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f68e45441641aea9888b1daa813b90f88da1e9b38bae0dbab7cb57723eb195b4e2b2a2843128a4f1069655f02b445b5735abf3a681649395c08d716c70504cd
|
7
|
+
data.tar.gz: 97684c1d606dea307c9e3b86008c4b480447571c325c7804dbd72897be169c5e8bc3109038c87c3eb15efd845023b408e7fc85e8a0863d4da59ac9101b2fd9ba
|
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.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: '
|
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: '
|
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.
|
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:
|