@extends('layouts/default') {{-- Page title --}} @section('title') Update SAML Settings @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()}}

SAML

{{ Form::label('saml_integration', trans('admin/settings/general.saml_integration')) }}
{{ Form::checkbox('saml_enabled', '1', Request::old('saml_enabled', $setting->saml_enabled), [((config('app.lock_passwords')===true)) ? 'disabled ': '', 'class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.saml_enabled') }} @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', 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

View Metadata

@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', '') !!}

{{ 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', Request::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', '') !!}
{{ Form::label('saml_forcelogin', trans('admin/settings/general.saml_forcelogin_label')) }}
{{ Form::checkbox('saml_forcelogin', '1', Request::old('saml_forcelogin', $setting->saml_forcelogin),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.saml_forcelogin') }}

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

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

{!! $errors->first('saml_forcelogin', '') !!}
{{ Form::label('saml_slo', trans('admin/settings/general.saml_slo_label')) }}
{{ Form::checkbox('saml_slo', '1', Request::old('saml_slo', $setting->saml_slo),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.saml_slo') }}

{{ 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', 'wrap' => 'off', $setting->demoMode]) }}

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

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