fix mailserver,auth: OAuth client secret has only allowed characters
This commit is contained in:
@@ -113,7 +113,7 @@ let
|
|||||||
"${oauth-client-id}-kanidm-ExecStartPre-script.sh" ''
|
"${oauth-client-id}-kanidm-ExecStartPre-script.sh" ''
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
[ -f "${oauth-client-secret-fp}" ] || \
|
[ -f "${oauth-client-secret-fp}" ] || \
|
||||||
"${lib.getExe pkgs.openssl}" rand -base64 32 | tr -d "\n" > "${oauth-client-secret-fp}"
|
"${lib.getExe pkgs.openssl}" rand -base64 32 | tr "\n:@/+=" "012345" > "${oauth-client-secret-fp}"
|
||||||
'';
|
'';
|
||||||
dovecot-oauth2-conf-fp = "/run/${runtime-directory}/dovecot-oauth2.conf.ext";
|
dovecot-oauth2-conf-fp = "/run/${runtime-directory}/dovecot-oauth2.conf.ext";
|
||||||
write-dovecot-oauth2-conf = appendSetting {
|
write-dovecot-oauth2-conf = appendSetting {
|
||||||
|
Reference in New Issue
Block a user