Skip to content

Misleading error around "Create recovery link" interaction #13714

@t3chguy

Description

@t3chguy

Describe the bug
The error implies one thing but may be wholly wrong

"The current brand must have a recovery flow configured to use a recovery link",
is used for too many cases

To Reproduce
Steps to reproduce the behavior:

  1. Configure a recovery flow for the brand using https://docs.goauthentik.io/docs/add-secure-apps/flows-stages/flow/examples/flows#recovery-with-email-verification
  2. Try to generate a recovery link
  3. See error The current brand must have a recovery flow configured to use a recovery link

Expected behavior
An error stating Recovery flow not applicable to user which is only visible if you dig into the network response

Screenshots
If applicable, add screenshots to help explain your problem.

Logs

{"auth_via":"session","domain_url":"auth.domain","event":"/api/v3/core/users/27/recovery/","host":"auth.domain","level":"info","logger":"authentik.asgi","method":"POST","pid":59,"remote":"141.101.98.243","request_id":"6c21ea402d6348e6826b48c04d69143a","runtime":58,"schema_name":"public","scheme":"https","status":"<mark>400</mark>","timestamp":"2025-03-29T00:35:59.336159","user":"t3chguy","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"}

Version and Deployment (please complete the following information):

  • authentik version: 2025.2.3
  • Deployment: docker-compose

Additional context

The example flow at the link provided is set to Require no auth, which makes it not work for generating recovery links, thus leading this confusing error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus/reviewingthanks for opening, we're taking a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions