-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Running portal on path rather than subdomain #151
Comments
@darox , yes. It is done with “route” directive. what is the config you are currently using? |
i have the some problem, i have this working config:
once i change to this config i get 404 for the login portal
|
@terefang , try this and report the outcome
|
still |
This worked great for me. It should be a config example! |
@darox , @j0dan @terefang , I am looking to add testimonial sections to https://authcrunch.com. Could you please write one and send it to me at [email protected]? |
I am facing the exact same issue as @terefang . It seems neither "authenticate /secure-auth* with myportal" nor "authenticate with myportal" will work under a path rather than a subdomain. The issue is, when i use a subdomain, I can only get an authorization cookie for either the exakt subdomain of the login portal (which is not useful), or for the whole domain including all subdomains. This interferes with other services under my domain and I can only log into some services after deleting the cookies. Specifying a different subdomain for the cookie in the auth portal still issues a wildcard cookie for the whole domain. So it seems I have to route the login portal via a path to get a cookie for this specific subdomain only. The documentation on this is very sparse and I'm not sure what caddy-security is implicitly assuming or allowing me to do, the approach outlined here does not work for me. |
Ok nevermind I was able to fix it and want to leave my solution here for anyone else facing this problem: Two things:
So everything works fine now. Here's my obfuscated working config with pocket-ID as OIDC provider:
|
Hi
I wonder whether it is possible to run the portal on the same subdomain but using a path like /auth and protect a path /documents?
Thank you.
The text was updated successfully, but these errors were encountered: