Skip to content

Refactor reverse proxy header parsing and use in password reset #2562

Open
@dbutenhof

Description

@dbutenhof

For password reset API email generation:

body=("Please reset your password at " + self.host + "/" + token),

self.host isn't ideal here; if the dashboard has been reaching the server through a reverse proxy, we ought to use that same path. This is OK for now, however; I'll convert this comment into an issue, which should be addressed by factoring the reverse proxy header logic out of /api/v1/endpoints so that it can be shared here. (Or anywhere else we want to report a URI to a client.)

Originally posted by @dbutenhof in #2491 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIOf and relating to application programming interfaces to services and functionsBacklogServerUsersOf and relating to working with users.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions