Skip to content
This repository was archived by the owner on Dec 7, 2020. It is now read-only.
This repository was archived by the owner on Dec 7, 2020. It is now read-only.

Redirection URL path prefix #686

@JeremyMahieu

Description

@JeremyMahieu

Redirection URL path

Summary

I use traefik as a reverse proxy. My different services are differentiated by path.

  • my.domain.com/service1
  • my.domain.com/service2
  • my.domain.com/service3

I want service 1 to use keycloak authentication so I used the following:

redirection-url: http://my.domain.com/service1
secure-cookie: false

When I visit http://my.domain.com/service1 it redirects to http://my.domain.com/oauth/authorize?state=(...). However it should redirect to http://my.domain.com/service1/oauth/authorize?state=(...)

Environment

  • Docker image: dcm4che/louketo-proxy:1.0.0

Expected Results

Get redirected to http://my.domain.com/service1/oauth/authorize?state=(...)

Actual Results

Got redirected to http://my.domain.com/oauth/authorize?state=(...)

Additional Information

Due to reasons I'm forced to use paths. Only my.domain.com is available on one port.
Everything is actually https but traefik offloads tls so the app only sees http.
I can strip the /service1 prefix with traefik once traefik has determined which service this request belongs so so the actual requested endpoints will match up but the redirect needs to be correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions