Skip to content

Commit f9903b9

Browse files
committed
feat: improve Authentik setup with default root email and better instructions
1 parent ce9783a commit f9903b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/src/commands/sso/add/setupAuthentik.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ export async function setupAuthentik(
183183
}
184184

185185
if (!ctx.authentikRootEmail) {
186+
const defaultRootEmail = `authentik-root@${SSO_SUBDOMAIN}.${ctx.ancestorDomain}`
186187
ctx.authentikRootEmail = await context.logger.input({
187188
task,
189+
default: defaultRootEmail,
188190
explainer: "This email will be used for the initial Authentik root user.",
189191
message: "Email:",
190192
validate: (value: string) => {
@@ -209,7 +211,7 @@ export async function setupAuthentik(
209211
if (!ctx.authentikAdminEmail) {
210212
ctx.authentikAdminEmail = await context.logger.input({
211213
task,
212-
explainer: "This email will be used for your Authentik user.",
214+
explainer: "This email will be used for your Authentik user. This email must be unique and not be the AWS root email address.",
213215
message: "Email:",
214216
validate: (value: string) => {
215217
const { error } = z.string().email().safeParse(value);

0 commit comments

Comments
 (0)