feat: add token expiry and email subject template
This commit is contained in:
parent
b7df357395
commit
4bab09a1cf
|
@ -35,3 +35,6 @@ WELCOME_MESSAGE="Welcome to Authentik"
|
||||||
DEFAULT_LANGUAGE=en
|
DEFAULT_LANGUAGE=en
|
||||||
AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]'
|
AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]'
|
||||||
COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/ icon_left_brand.svg|app:/web/dist/assets/icons/ icon.png|app:/web/dist/assets/icons/"
|
COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/ icon_left_brand.svg|app:/web/dist/assets/icons/ icon.png|app:/web/dist/assets/icons/"
|
||||||
|
|
||||||
|
EMAIL_SUBJECT="Account Recovery"
|
||||||
|
EMAIL_TOKEN_EXPIRY_MINUTES=30
|
||||||
|
|
4
abra.sh
4
abra.sh
|
@ -1,5 +1,5 @@
|
||||||
export CUSTOM_CSS_VERSION=v2
|
export CUSTOM_CSS_VERSION=v2
|
||||||
export CUSTOM_FLOWS_VERSION=v2
|
export CUSTOM_FLOWS_VERSION=v3
|
||||||
|
|
||||||
customize() {
|
customize() {
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
|
@ -31,7 +31,7 @@ if (token:= Token.objects.filter(identifier='authentik-bootstrap-token').first()
|
||||||
token.key=key
|
token.key=key
|
||||||
token.save()
|
token.save()
|
||||||
print('Changed authentik-bootstrap-token')
|
print('Changed authentik-bootstrap-token')
|
||||||
else:
|
else:
|
||||||
Token.objects.create(
|
Token.objects.create(
|
||||||
identifier='authentik-bootstrap-token',
|
identifier='authentik-bootstrap-token',
|
||||||
user=akadmin,
|
user=akadmin,
|
||||||
|
|
|
@ -23,6 +23,8 @@ x-env: &env
|
||||||
- AUTHENTIK_IMPERSONATION
|
- AUTHENTIK_IMPERSONATION
|
||||||
- WELCOME_MESSAGE
|
- WELCOME_MESSAGE
|
||||||
- DEFAULT_LANGUAGE
|
- DEFAULT_LANGUAGE
|
||||||
|
- EMAIL_SUBJECT
|
||||||
|
- EMAIL_TOKEN_EXPIRY_MINUTES
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
|
@ -12,7 +12,7 @@ context:
|
||||||
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Vor- und Nachname {{ else }} Full name {{ end }}
|
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Vor- und Nachname {{ else }} Full name {{ end }}
|
||||||
|
|
||||||
entries:
|
entries:
|
||||||
######## Email Recovery Flow ########
|
######## Email Recovery Flow ########
|
||||||
- identifiers:
|
- identifiers:
|
||||||
slug: default-recovery-flow
|
slug: default-recovery-flow
|
||||||
id: recovery_flow
|
id: recovery_flow
|
||||||
|
@ -54,8 +54,8 @@ entries:
|
||||||
model: authentik_stages_email.emailstage
|
model: authentik_stages_email.emailstage
|
||||||
attrs:
|
attrs:
|
||||||
use_global_settings: true
|
use_global_settings: true
|
||||||
token_expiry: 30
|
token_expiry: {{ env "EMAIL_TOKEN_EXPIRY_MINUTES" }}
|
||||||
subject: authentik
|
subject: "{{ env "EMAIL_SUBJECT" }}"
|
||||||
template: email/password_reset.html
|
template: email/password_reset.html
|
||||||
activate_user_on_success: true
|
activate_user_on_success: true
|
||||||
- identifiers:
|
- identifiers:
|
||||||
|
@ -174,7 +174,7 @@ entries:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
######## Authentication Flow ########
|
######## Authentication Flow ########
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: authentication
|
designation: authentication
|
||||||
name: custom-authentication-flow
|
name: custom-authentication-flow
|
||||||
|
@ -236,7 +236,7 @@ entries:
|
||||||
target: !KeyOf authentication_flow
|
target: !KeyOf authentication_flow
|
||||||
model: authentik_flows.flowstagebinding
|
model: authentik_flows.flowstagebinding
|
||||||
|
|
||||||
######## Invitation Enrollment Flow ########
|
######## Invitation Enrollment Flow ########
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: enrollment
|
designation: enrollment
|
||||||
name: invitation-enrollment-flow
|
name: invitation-enrollment-flow
|
||||||
|
@ -336,7 +336,7 @@ entries:
|
||||||
|
|
||||||
######## System Tenant ##########
|
######## System Tenant ##########
|
||||||
- attrs:
|
- attrs:
|
||||||
attributes:
|
attributes:
|
||||||
settings:
|
settings:
|
||||||
locale: {{ env "DEFAULT_LANGUAGE" }}
|
locale: {{ env "DEFAULT_LANGUAGE" }}
|
||||||
# branding_favicon: /static/dist/assets/icons/icon.png
|
# branding_favicon: /static/dist/assets/icons/icon.png
|
||||||
|
|
Loading…
Reference in New Issue