Skip to content

api/v2/auth does not redirect to X-Forwarded-Uri #1887

@doug-w

Description

@doug-w
Organizr Version: docker hub label organizr/organizr:latest
Branch: organizr/organizr:latest
WebServer: Traefik
Operating System: Ubuntu

Problem Description:

If you use /api/v2/auth for login purposes, you will be redirected to the Organizr home page after logging in rather than the URI in the original header request stored in X-Forwarded-Uri.


Reproduction Steps:

Configure an auth redirection in a reverse proxy, I use traefik:
traefik.http.middlewares.auth-admin.forwardauth.address: "https://organizr.${DOMAIN}/api/v2/auth?group=1"
Visit the site, and see the organizr login screen.
Login, and be redirected to the main organizr landing page rather than the URL originally entered.


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions