You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off thanks for the effort put into this package.
I am using traefik-forward-auth in more than likely a non-standard way. I am deploying to a PaaS and have certain pieces working using the generic-oauth provider. It looks like i am getting authenticated and then it is terminating on the redirect back. Looking at the response it leaves the host empty on the redirect_url. This looks to be the same whether I have AUTH_HOST set or not.
I get the following error returned by the browser
Invalid redirect https:///_oauth did not match one of the registered values
Looking at the it looks like this request is happening during the authorize call going back to my 3rd party OAuth provider. I get a 400 because the host is empty from the redirect_url. Any assistance would be greatly appreciated. Even if I had a way to statically define the callback URL. I have tried setting AUTH_HOST before on the start of the the traefik-forward-auth binary as we well as setting an environment variable. Just looks like it isn't getting picked up for some reason.
Like I mentioned earlier I understand that this use case isn't one that you were planning to target but I would greatly appreciate any assistance in diagnosing to come up with a work around.
/r
Evan
The text was updated successfully, but these errors were encountered:
You need to make sure the traefik-forward-auth service also has the auth middleware for its router. This is counter-intuitive, but may be related to your problem.
Hi - please could you confirm you if you have the middleware correctly applied to the traefik-forward-auth container, as the docs?
I'm going to close this as there wasn't any follow up from the last response, but please re-open with an extract of your config if this is still an issue
First off thanks for the effort put into this package.
I am using traefik-forward-auth in more than likely a non-standard way. I am deploying to a PaaS and have certain pieces working using the generic-oauth provider. It looks like i am getting authenticated and then it is terminating on the redirect back. Looking at the response it leaves the host empty on the redirect_url. This looks to be the same whether I have AUTH_HOST set or not.
I get the following error returned by the browser
Looking at the it looks like this request is happening during the authorize call going back to my 3rd party OAuth provider. I get a 400 because the host is empty from the redirect_url. Any assistance would be greatly appreciated. Even if I had a way to statically define the callback URL. I have tried setting AUTH_HOST before on the start of the the traefik-forward-auth binary as we well as setting an environment variable. Just looks like it isn't getting picked up for some reason.
Like I mentioned earlier I understand that this use case isn't one that you were planning to target but I would greatly appreciate any assistance in diagnosing to come up with a work around.
/r
Evan
The text was updated successfully, but these errors were encountered: