omniauth-authentiq 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: 5d7e7b3e51f99cded0ba659c1161ece4f4f0d0c3
4
- data.tar.gz: fb5c1e16c513836280b96a756789d79eeb38c4fe
3
+ metadata.gz: c323614903427d91eb0d56b75f1907c9209d5765
4
+ data.tar.gz: b0dad720d7799dcbe8772cd17ac38d8f36457d34
5
5
  SHA512:
6
- metadata.gz: ff537913cec88b237d0820091b988dec465f6c981e4a2c52b3fd93ee49c4f707dd5d39c7c489ae258fa0adbc63f7ea6df0a592efac508821f1c57777d203323f
7
- data.tar.gz: a7b172b8ff284d0fd07c085e6fcc59e5adfd85dcbbfdb899d6b681508a16fef0bb1575bd22120e3c08dc3051d50f6d205998064d80c9c5ae7d4a5fee6a02fd65
6
+ metadata.gz: f2d7770e2302fb1b19d86d2e80f4869dba3bb0f8f32e52e54d6982d606ff24333b8cb3e7d16f2353cd2acb3ca59343396fde0366c2ac81771ff089a344660ef8
7
+ data.tar.gz: 9c2f2e24cfab3d7f50cccefec1791bbaceed59071e55750b04d19a177425f45b4385c2f269fa3493e61910f74c60506dc6426cee7799ed3ec6c9c8fe94350ac0
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Authentiq
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -83,9 +83,7 @@ module OmniAuth
83
83
  end
84
84
 
85
85
  def sign_out_phase
86
- if options[:enable_remote_sign_out]
87
- backchannel_logout_request.new(self, request).call(options)
88
- end
86
+ backchannel_logout_request.new(self, request).call(options)
89
87
  end
90
88
 
91
89
  private
@@ -11,8 +11,6 @@ module OmniAuth
11
11
  @options = options
12
12
 
13
13
  begin
14
- # for sign_out_callback.call(*back_channel_logout_request) to execute
15
- # a proc must be set in the devise.rb initializer of the rails app
16
14
  result = sign_out_callback.call(*back_channel_logout_request)
17
15
  rescue StandardError => err
18
16
  result = back_channel_logout_response(400, [err.to_s])
@@ -69,7 +67,14 @@ module OmniAuth
69
67
  end
70
68
 
71
69
  def sign_out_callback
72
- @options[:enable_remote_sign_out]
70
+ if @options.has_key?(:remote_sign_out_handler) && (@options[:remote_sign_out_handler].respond_to? :call)
71
+ @options[:remote_sign_out_handler]
72
+ else
73
+ OmniAuth::logger.send(:warn, 'It look like remote logout is configured on your Authentiq client but \':remote_sign_out_handler\' is not implemented on devise or omniauth')
74
+ raise 'Remote sign out failed because the client\'s \':remote_sign_out_handler\' is not implemented on devise or omniauth'
75
+ end
76
+
77
+
73
78
  end
74
79
 
75
80
  def validate_sid(logout_jwt)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-authentiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandros Keramidas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-08 00:00:00.000000000 Z
11
+ date: 2017-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2