%= form_with model: @encrypted_config, url: settings_sso_path, method: :patch, local: true, multipart: true, class: "space-y-4" do |f| %>
SAML SSO Configuration
Configure SAML 2.0 Single Sign-On for your organization. Users will be able to sign in using your identity provider.
Upload your Identity Provider's metadata XML file to automatically populate the configuration below.
Configuration URLs for your Identity Provider
Assertion Consumer Service URL:
<%= "#{request.base_url}/auth/saml/callback" %>
          
          SP Metadata URL:
<%= "#{request.base_url}/auth/saml/metadata" %>
            " 
               class="btn btn-sm btn-outline" 
               target="_blank"
               title="Download SAML Metadata">
              Download
            
          SP Entity ID:
<%= saml_config['sp_entity_id'] || 'docuseal' %>