Skip to content

Commit 013ad10

Browse files
committed
saving certs sooner in the stack
1 parent ec05971 commit 013ad10

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/Http/Requests/SettingsSamlRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ public function withValidator($validator)
130130
'saml_sp_x509cert' => $x509cert,
131131
'saml_sp_privatekey' => $privateKey,
132132
]);
133+
$setting = Setting::getSettings();
134+
$setting->saml_sp_x509cert = $x509cert;
135+
$setting->saml_sp_privatekey = $privateKey;
136+
$setting->save();
133137
}
134138
} else {
135139
$validator->errors()->add('saml_integration', 'openssl.cnf is missing/invalid');

resources/views/settings/saml.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<label for="saml_sp_x509cert">{{ trans('admin/settings/general.saml_sp_x509cert') }}</label>
8686
<x-input.textarea
8787
name="saml_sp_x509cert"
88+
id="saml_sp_x509cert"
8889
:value="$setting->saml_sp_x509cert"
8990
wrap="off"
9091
readonly

0 commit comments

Comments
 (0)