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
A clear and concise description of what you want to accomplish.
I'm using oidc with keycloak. I can succesfully login and access my domains.
But when I try to access auth.xxx.at/portal or auth.xxx.at/auth/portal I always get redirected to auth.xxx.at/login or auth.xxx.at/auth/login.
Surprisingly, when I add to the role "authp/guest" in keycloak to this user, the portal works perfectly fine.
But I want to portal to be available for all logged in users without considering roles, how can I achieve this?
Another small question, when a login is required, I have to manually select the login provider to be redirected to the login page, how can I be a automatically redirected?
If I access auth.xxx.at and i'm not logged in, I want to be directly redirected to the login page.
If not logged in, I want to be redirected to the portal.
Is this possible?
Sometimes this is in my logs, even when doing nothing, maybe this is relevant:
Apr 25 22:30:21 ReverseProxy caddy[2758]: {"level":"error","ts":1745620221.2369118,"logger":"http.handlers.authentication","msg":"auth provider returned error","provider":"authorizer","error":"user authorization failed: src_ip=154.28.229.234, src_conn_ip=154.28.229.234, reason: no token found"}
Hi, just want to chime in here, I think I'm hitting the same issue with the portal always redirecting to the login URL. Looking at the requests in the developer console I see that the portal responds with this header:
set-cookie access_token=delete; Domain=mydomain.fr; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT;
maybe that's related ?
I can also confirm that if I access a protected URL directly (like mydomain.fr/grafana) and then login it works fine, it's just the portal that doesn't work.
Finally, I think it's a recent issue. I upgraded to v2.10.0 last week with the latest caddy-security version (built with xcaddy) so I'm guessing an upgrade broke this.
Uh oh!
There was an error while loading. Please reload this page.
I'm using oidc with keycloak. I can succesfully login and access my domains.
But when I try to access auth.xxx.at/portal or auth.xxx.at/auth/portal I always get redirected to auth.xxx.at/login or auth.xxx.at/auth/login.
The log when successfully accessing a subdomain:
Surprisingly, when I add to the role "authp/guest" in keycloak to this user, the portal works perfectly fine.
But I want to portal to be available for all logged in users without considering roles, how can I achieve this?
Another small question, when a login is required, I have to manually select the login provider to be redirected to the login page, how can I be a automatically redirected?
If I access auth.xxx.at and i'm not logged in, I want to be directly redirected to the login page.
If not logged in, I want to be redirected to the portal.
Is this possible?
Sometimes this is in my logs, even when doing nothing, maybe this is relevant:
Thank you for your help!
My config:
The text was updated successfully, but these errors were encountered: