2019-04-09 15:38:58 +00:00
|
|
|
%section.settings.as-external-auth.no-animate#js-external-auth-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
2022-01-08 00:14:32 +00:00
|
|
|
= s_('ExternalAuthorization|External authorization')
|
2021-01-20 09:10:52 +00:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-04-09 15:38:58 +00:00
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2022-01-08 00:14:32 +00:00
|
|
|
= s_('ExternalAuthorization|External classification policy authorization.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/external_authorization'), target: '_blank', rel: 'noopener noreferrer'
|
2019-04-09 15:38:58 +00:00
|
|
|
.settings-content
|
|
|
|
|
2021-04-15 09:09:03 +00:00
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-external-auth-settings'), html: { class: 'fieldset-form', id: 'external-auth-settings' } do |f|
|
2019-04-09 15:38:58 +00:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :external_authorization_service_enabled, class: 'form-check-input'
|
|
|
|
= f.label :external_authorization_service_enabled, class: 'form-check-label' do
|
2022-01-08 00:14:32 +00:00
|
|
|
= s_('ExternalAuthorization|Enable classification control using an external service')
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_description
|
|
|
|
.form-group
|
2022-01-08 00:14:32 +00:00
|
|
|
= f.label :external_authorization_service_url, s_('ExternalAuthorization|Service URL'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :external_authorization_service_url, class: 'form-control gl-form-input'
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_url_help_text
|
|
|
|
.form-group
|
2022-01-08 00:14:32 +00:00
|
|
|
= f.label :external_authorization_service_timeout, s_('ExternalAuthorization|External authorization request timeout (seconds)'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.number_field :external_authorization_service_timeout, class: 'form-control gl-form-input', min: 0.001, max: 10, step: 0.001
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_timeout_help_text
|
2022-01-08 00:14:32 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :external_auth_client_cert, s_('ExternalAuthorization|Client authorization certificate'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_area :external_auth_client_cert, class: 'form-control gl-form-input'
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_client_certificate_help_text
|
|
|
|
.form-group
|
2022-01-08 00:14:32 +00:00
|
|
|
= f.label :external_auth_client_key, s_('ExternalAuthorization|Client authorization key'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_area :external_auth_client_key, class: 'form-control gl-form-input'
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_client_key_help_text
|
|
|
|
.form-group
|
2022-01-08 00:14:32 +00:00
|
|
|
= f.label :external_auth_client_key_pass, s_('ExternalAuthorization|Client authorization key password (optional)'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.password_field :external_auth_client_key_pass, class: 'form-control gl-form-input'
|
2019-04-09 15:38:58 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_client_pass_help_text
|
|
|
|
.form-group
|
2022-01-08 00:14:32 +00:00
|
|
|
= f.label :external_authorization_service_default_label, s_('ExternalAuthorization|Default classification label'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :external_authorization_service_default_label, class: 'form-control gl-form-input'
|
2022-01-08 00:14:32 +00:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= external_authorization_client_url_help_text
|
2021-08-25 21:10:28 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|