From 2b1807d32bd627885a2623d534bacf9ce7d9012d Mon Sep 17 00:00:00 2001 From: whiskerch <35109315+whiskerch@users.noreply.github.com> Date: Sun, 19 Aug 2018 09:59:47 +0100 Subject: [PATCH] Update config.template.yml to include TOTP issuer name * Update config.template.yml and hook.ts This fixes issue reported in #251. --- config.template.yml | 8 ++++++++ test/features/step_definitions/hooks.ts | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config.template.yml b/config.template.yml index 1ea19a2ee..6457bbf8f 100644 --- a/config.template.yml +++ b/config.template.yml @@ -22,6 +22,14 @@ logs_level: debug # be redirected upon successful authentication. default_redirection_url: https://home.example.com:8080/ +# TOTP Issuer Name +# +# This will be the issuer name displayed in Google Authenticator +# See: https://github.com/google/google-authenticator/wiki/Key-Uri-Format for more info on issuer names +totp: + issuer: authelia.com + + # LDAP configuration # # Example: for user john, the DN will be cn=john,ou=users,dc=example,dc=com diff --git a/test/features/step_definitions/hooks.ts b/test/features/step_definitions/hooks.ts index bfbc121de..eb46b8a8f 100644 --- a/test/features/step_definitions/hooks.ts +++ b/test/features/step_definitions/hooks.ts @@ -69,9 +69,8 @@ function createSingleFactorConfiguration(): BluebirdPromise { function createCustomTotpIssuerConfiguration(): BluebirdPromise { return exec("\ - cat config.template.yml > config.test.yml && \ - echo 'totp:' >> config.test.yml && \ - echo ' issuer: custom.com' >> config.test.yml \ + cat config.template.yml | \ + sed 's/issuer: authelia.com/issuer: custom.com/' > config.test.yml \ "); }