@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/settings/general.saml_title') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'false', 'class' => 'form-horizontal', 'role' => 'form']) }} {{csrf_field()}}

{{ trans('admin/settings/general.saml') }}

{{ trans('admin/settings/general.saml_integration') }}
{!! $errors->first('saml_integration', '') !!} @if (config('app.lock_passwords') === true)

{{ trans('general.feature_disabled') }}

@endif
@if ($setting->saml_enabled)
{{ Form::label('saml_sp_entitiyid', trans('admin/settings/general.saml_sp_entityid')) }} {{ Form::text('saml_sp_entitiyid', config('app.url'), ['class' => 'form-control', 'readonly']) }}
{{ Form::label('saml_sp_acs_url', trans('admin/settings/general.saml_sp_acs_url')) }} {{ Form::text('saml_sp_acs_url', route('saml.acs'), ['class' => 'form-control', 'readonly']) }}
{{ Form::label('saml_sp_sls_url', trans('admin/settings/general.saml_sp_sls_url')) }} {{ Form::text('saml_sp_sls_url', route('saml.sls'), ['class' => 'form-control', 'readonly']) }}
@if (!empty($setting->saml_sp_x509cert)) {{ Form::label('saml_sp_x509cert', trans('admin/settings/general.saml_sp_x509cert')) }} {{ Form::textarea('saml_sp_x509cert', $setting->saml_sp_x509cert, ['class' => 'form-control', 'wrap' => 'off', 'readonly']) }}
@endif {{ Form::label('saml_sp_metadata_url', trans('admin/settings/general.saml_sp_metadata_url')) }} {{ Form::text('saml_sp_metadata_url', route('saml.metadata'), ['class' => 'form-control', 'readonly']) }}

{{ trans('admin/settings/general.saml_download') }}

@endif {!! $errors->first('saml_enabled', '') !!}
{{ Form::label('saml_idp_metadata', trans('admin/settings/general.saml_idp_metadata')) }}
{{ Form::textarea('saml_idp_metadata', old('saml_idp_metadata', $setting->saml_idp_metadata), ['class' => 'form-control','placeholder' => 'https://example.com/idp/metadata', 'wrap' => 'off', $setting->demoMode]) }} {!! $errors->first('saml_idp_metadata', '') !!}
demoMode }}>

{{ trans('admin/settings/general.saml_idp_metadata_help') }}

{{ Form::label('saml_attr_mapping_username', trans('admin/settings/general.saml_attr_mapping_username')) }}
{{ Form::text('saml_attr_mapping_username', old('saml_attr_mapping_username', $setting->saml_attr_mapping_username), ['class' => 'form-control','placeholder' => '', $setting->demoMode]) }}

{{ trans('admin/settings/general.saml_attr_mapping_username_help') }}

{!! $errors->first('saml_attr_mapping_username', '') !!}
{{ trans('admin/settings/general.saml_forcelogin_label') }}

{{ trans('admin/settings/general.saml_forcelogin_help') }}

{{ route('login', ['nosaml']) }}

{!! $errors->first('saml_forcelogin', '') !!}
{{ trans('admin/settings/general.saml_slo_label') }}

{{ trans('admin/settings/general.saml_slo_help') }}

{!! $errors->first('saml_slo', '') !!}
{{ Form::label('saml_custom_settings', trans('admin/settings/general.saml_custom_settings')) }}
{{ Form::textarea('saml_custom_settings', old('saml_custom_settings', $setting->saml_custom_settings), ['class' => 'form-control','placeholder' => 'example.option=false sp_x509cert=file:///... sp_private_key=file:///', 'wrap' => 'off', $setting->demoMode]) }}

{{ trans('admin/settings/general.saml_custom_settings_help') }}

{!! $errors->first('saml_custom_settings', '') !!}
{{Form::close()}} @stop @push('js') @endpush