-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Settings Page Returns Page Not Found #337
Comments
@WalterSchirmacher , please server the portal from “/auth/*” path. The settings are available via “/auth/profile” |
@WalterSchirmacher , serve it from “auth.mywebsite.com/auth/“ |
I tried changing it to "auth/settings" (so
https://auth.mywebsite.com/auth/settings" instead of "
https://auth.mywebsite.com/settings") and it didn't work.
For reference, the "whoami" works and is located at
https://auth.mywebsite.com/whoami".
Caddy is hosted on Ubuntu 22.04 (LTS) and the system is only about 2 months
old. This is a fresh Caddy install.
I had a previous instance on a different box for a few months (an old Mac)
but didn't reuse the Caddy file directly (though I did copy/paste some bits
to avoid retyping). The Caddy Security users.json is newly setup to avoid
any permission issues. I can provide the whoami info later tonight if that
is helpful. Caddy is setup with its own user, and I double checked to
ensure it has the appropriate RWX access for where everything is stored.
Thank you,
Walter B. Schirmacher
***@***.***
…On Sun, May 5, 2024 at 12:41 AM Paul Greenberg ***@***.***> wrote:
@WalterSchirmacher <https://github.com/WalterSchirmacher> , serve it from
“auth.mywebsite.com/auth/“
—
Reply to this email directly, view it on GitHub
<#337 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5DDVMFATYYSU4OSY3XQJT3ZAWZ7HAVCNFSM6AAAAABHG64FRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGU4TAOBWGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@WalterSchirmacher , there are no more "settings". It is "/auth/profile". |
I tried /auth/profile and still get page not found. I also tried /profile with the same result. |
@WalterSchirmacher , please share the snippet how you are serving “authenticate with” directive. |
Here are the relevant parts: {
} *.mywebsite.com {
} |
@WalterSchirmacher , the issue is here @theauth host auth.mywebsite.com you are serving it from “/“, you need to have a redirect from “/“ to “/auth/“ and handle the path “/auth*” |
I am with the same error, following routes are not accessible:
This is my Caddyfile:
|
I tried to do this, however with no success. I might be forgetting something. |
I was also facing the same issue with a very similar configuration and for me worked on putting the '/' at the end of the url, like: mydomain.com/auth/profile/ for some reason: mydomain.com/auth/profile would give me a 404 not found |
Thanks @ooiuri. That was it! Solved for my side. |
@WalterSchirmacher , please share your final config. |
transform user {
match origin local
action add role authp/user
- ui link "My Portal Settings" /settings icon "las la-cog"
+ ui link "User Dashboard" /auth/profile/ icon "las la-cog"
} |
When clicking on the Settings link, a "Page Not Found" page appears instead of the expected settings page.
Configuration
Version Information
Provide output of
caddy list-modules --versions | grep -E "(auth|security)"
below:Expected behavior
The settings page would appear and be functional.
The text was updated successfully, but these errors were encountered: