Skip to content

Commit

Permalink
Fix saml_idp_sso_binding_urn selection logic in update_from_saml_meta…
Browse files Browse the repository at this point in the history
…data()
  • Loading branch information
Alex Dolski committed Mar 5, 2024
1 parent ef364ed commit 2ff8c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/institution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ def update_from_saml_metadata(metadata_xml_file)
self.saml_idp_sso_post_service_url = node.attr("Location")
end
end
if self.saml_idp_sso_binding_urn.blank?
if (self.saml_idp_sso_redirect_service_url.blank? || self.saml_idp_sso_post_service_url.blank?) ||
self.saml_idp_sso_binding_urn.blank?
self.saml_idp_sso_binding_urn = self.saml_idp_sso_redirect_service_url.present? ?
"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" :
"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Expand Down

0 comments on commit 2ff8c3b

Please sign in to comment.