-
Notifications
You must be signed in to change notification settings - Fork 329
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
Vouch Proxy and Keycloak 400 bad request after authenticating #553
Comments
SWAG appears to be NGINX based but beyond that I'm not familiar enough with SWAG to offer you support. https://github.com/linuxserver/docker-swag/blob/master/Dockerfile Vouch Proxy is a "sidecar". The headers of every request are sent to VP via the I can't advise you on how to integrate SWAG + VP + Keycloak. Forgive me, I just don't have time to offer that level of support. If you do get to the point where you have something working to the point where you're getting errors please read the README and offer the items describe there. I'm going to close this for now but please do feel free to ask more questions here. |
Thank you for your time. I'm probably going to spend some time researching more and if I have any more questions I'll come back here |
https://pastebin.com/h4XMkSt5 i have set up keycloak like the pr i linked originally did changing to my domain and realm |
Well that's good progress! Please do provide all configs and logs as described in the README |
https://pastebin.com/1XWpjsxD |
Don't worry about the bug report but please do include all logs from VP That error is saying the browser got an http response even though you requested https in the URL. Change line 111 to http |
i changed line 111 and another line i can now access the testing page here are the vouch logs from container startup |
Getting closer. Please do leave comments here instead of in the pastebin so we can be clear about what question you're asking. Feel free to edit out the health check logs. Though everything else is very helpful. Can you clarify what's happening now? |
What happens if you turn off testing? |
without testing it takes me to the login i log in using the correct credentials and then i get 400 bad request if i try to go to the same website again i just go straight to 400 |
Please turn on testing and update your pastebin with the current info What happens after keycloak returns you to VP's / auth endpoint? What's the error in the logs? Try searching here and generally online for that error I'm going to be afk for a while here. But it feels like you're closer |
log in appears to be successful i see a 200 repsonse code auth has a 200
this occurs just after the successfully /auth here is the full logs : this mentions an incorrect scope i havent changed my OAUTH_SCOPES varible and im not using a config so could the issue be i need to customise which scopes to use? i added |
When using keycloak the opening claim is changed and the claim is called preferred_username and not username. How do I change this in the config as that might fix the issue |
i was looking through the config and i saw this
im my compose file i have
keycloak uses a different username claim called preferred_username instead of the default i configured a different service with just oauth2 and keycloak and also had to change this do you know why this might be being blanked? |
I am setting oauth claims in my compose file however it's not being picked up if you look at the compose file at the bottom of here: |
well it can be the problem of how you make docker container image. |
Okay I won't be able to do that until I'm home but thank you for the help I really appreciate it I'll report back when I've done that |
Hello, I'm new to server infrastructure like this and I'm struggling to understand how I can implement vouch proxy in a setup.
My current setup uses nginx proxy manager as a reverse proxy for my domain and also deals with SSL termination for many apps like portainer and Heimdall using subdomains.
I would like to change to swag as a reverse proxy and Implement vouch for sso and keycloak as my identity provider.
When you use vouch does it take the place of a reverse proxy eg forward everything to vouch and have vouch redirect to apps as needed? I've read the documentation for swag, vouch and keycloak and I'm feeling a little lost as how to combine the 3 services.
Edit #551 helps with understanding keycloak but I'm still unsure about configuring a reverse proxy with vouch and SSL termination by extension
The text was updated successfully, but these errors were encountered: