File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ def initialize(response, options = {})
45
45
@options = options
46
46
47
47
@soft = true
48
- if ! options . empty? && ! options [ :settings ] . nil?
48
+ unless options [ :settings ] . nil?
49
49
@settings = options [ :settings ]
50
- if ! options [ : settings] . soft . nil?
51
- @soft = options [ : settings] . soft
50
+ unless @ settings. soft . nil?
51
+ @soft = @ settings. soft
52
52
end
53
53
end
54
54
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ def initialize(request, options = {})
37
37
@options = options
38
38
39
39
@soft = true
40
- if ! options . empty? && ! options [ :settings ] . nil?
40
+ unless options [ :settings ] . nil?
41
41
@settings = options [ :settings ]
42
- if ! options [ : settings] . soft . nil?
43
- @soft = options [ : settings] . soft
42
+ unless @ settings. soft . nil?
43
+ @soft = @ settings. soft
44
44
end
45
45
end
46
46
@@ -213,7 +213,7 @@ def validate_request_state
213
213
# @raise [ValidationError] if soft == false and validation fails
214
214
#
215
215
def validate_issuer
216
- return true if settings . idp_entity_id . nil? || issuer . nil?
216
+ return true if settings . nil? || settings . idp_entity_id . nil? || issuer . nil?
217
217
218
218
unless URI . parse ( issuer ) == URI . parse ( settings . idp_entity_id )
219
219
return append_error ( "Doesn't match the issuer, expected: <#{ settings . idp_entity_id } >, but was: <#{ issuer } >" )
You can’t perform that action at this time.
0 commit comments