File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ def initialize(response, options = {})
4545 @options = options
4646
4747 @soft = true
48- if ! options . empty? && ! options [ :settings ] . nil?
48+ unless options [ :settings ] . nil?
4949 @settings = options [ :settings ]
50- if ! options [ : settings] . soft . nil?
51- @soft = options [ : settings] . soft
50+ unless @ settings. soft . nil?
51+ @soft = @ settings. soft
5252 end
5353 end
5454
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ def initialize(request, options = {})
3737 @options = options
3838
3939 @soft = true
40- if ! options . empty? && ! options [ :settings ] . nil?
40+ unless options [ :settings ] . nil?
4141 @settings = options [ :settings ]
42- if ! options [ : settings] . soft . nil?
43- @soft = options [ : settings] . soft
42+ unless @ settings. soft . nil?
43+ @soft = @ settings. soft
4444 end
4545 end
4646
@@ -213,7 +213,7 @@ def validate_request_state
213213 # @raise [ValidationError] if soft == false and validation fails
214214 #
215215 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?
217217
218218 unless URI . parse ( issuer ) == URI . parse ( settings . idp_entity_id )
219219 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