greenpau / caddy-security

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐
https://authcrunch.com/
Apache License 2.0
1.33k stars 69 forks source link

question: How to set the portal URL? #288

Closed xtractalpha closed 7 months ago

xtractalpha commented 9 months ago

I couldn't locate the information – can the URL of the portal be changed? If so, how is this done?

Thank you!

Here is what I am aiming to establish:

Goal: For Login: login.xxx.com

And for the Portal: portal.xxx.com

Current situation: Portal: login.xxx.com/portal

greenpau commented 7 months ago

@xtractalpha , I think this could be done by rewriting path, e.g. match login.xxx.com/portal and redirect to portal.xxx.com. In the portal.xxx.com, validate authenticated and then append /portal to path.

The above is Caddy's magic. There is nothing you need to do with the plugin configuration.