-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authenticated in KeyCloak, yet not Authorized #36
Comments
I think you need to pass |
here a working example docker-compose.yml
|
I try with the wildcard *.localtest.me that doen't work but without dot works *localtest.me 😕 |
I am using the latest/22.00 keycloak with this config. Getting the following error
To generate cookie used this Refer
Refer
Refer https://go.dev/src/crypto/aes/cipher.go#25 The error How to fix this? |
Anyone around here, who can shed some light upon this? I'm having the same issues. I can't find a valid key size. What is a valid key size anyway? How do I generate a valid key? |
In my config, I have a They can be generated, e.g., with |
Before I dive too deep in this matter, I want to apologize beforehand, that i stumpled on KeyCloak and therefore your project by accident. I did not yet dig deep enough to know if these projects would exactly fit my needs or if I am doing it all wrong.
My setup currently are three different Docker Hosts (no swarm), each running one of:
keycloak + traefik
,traefik-forward-auth+ traefik
,application + traefik
. The plan was to have the application run in a LAN environment (or wherever), while the forward-auth-host is inside a DMZ allowing only HTTP/HTTPS+outgoing LDAP for Authentication against Active Directory.The KeyCloak Server could either be inside the same DMZ or internal - yet to decide where it makes most sense.
I followed your instructions in #1 and made a few changes here and there to fit my needs.
Now I am at a point where I am unable to progress, because I tried so much beforehand and this is the furthest I achieved.
When I hit the
whoami
page, I will get redirected to the KeyCloak login page bytraefik-forward-auth
. After entering username+password, I get redirected again totraefik-forward-auth
with /_oauth?.Yet I receive
401 Not Authenticated
. Inspecting the Browser Cookies (F12) I don't see anything in the list.This is the output of the debug log. I believe the error message appeared after building the latest version (Dockerhub is 6 months old)
This is my setup:
traefik-forward-auth
:whoami
:I guess it comes down to normal Docker Networking now and avoiding traefik at a certain point, so proxy headers won't get mixed up.
Any help on this is appreciated,
Thanks
Marcus
The text was updated successfully, but these errors were encountered: