1. Output of caddy version:
Not running yet
2. How I run Caddy:
Not running yet
a. System environment:
Linux + docker
b. Command:
Not running yet
c. Service/unit/compose file:
Not running yet
d. My complete Caddy config:
Not running yet
3. The problem I’m having:
Hi, all. What is the best way to achieve this scenario with caddy and its plugin ecosystem?
- Check incoming request.
- If not from certain IP, assert jwt from certain cookies
- If JWT is valid, continue processing the request to the next handler and ignore next step.
- If JWT is invalid, redirect to oidc provider authorization url.
- Upon succesful login with oidc and after being redirected back to caddy, set certain cookies with oidc access token (JWT)
- Redirect back to url visited in step 1
4. Error messages and/or full log output:
Not runnng yet
5. What I already tried:
Not running yet