Skip to content

login links don't work when running locally via nix #2659

@jobara

Description

@jobara

Prerequisites

Describe the bug

When setting up a local environment using nix, the login links return a 500 error.

If APP_DEBUG=true is set in the .env file you can see the error reporting which says:

You can not use a login link when host is localhost. The host should be one of: platform.test.

To Reproduce

Steps to reproduce the behavior:

  1. Create a local environment using nix
    2. Ensure that the .env has APP_ENV=local set.
  2. Go to the site https://localhost
  3. Click "Sign in"
  4. Click any of the login links such as "Sign in as individual user"
  5. Notice the 500 error

Expected behavior

The login link should login the requested user

Screenshots

screenshot of login links

Additional context

May want to consider adding APP_DEBUG=true to the .env file created by nix-shell. The APP_ENV=local is set in this generated .env so it should be safe to turn debugging on too.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions