1. Output of caddy version
:
: caddy version
v2.5.2 h1:eCJdLyEyAGzuQTa5Mh3gETnYWDClo1LjtQm2q9RNZrs=
though will upgrade to 2.6.1 soon.
2. How I run Caddy:
caddy run --watch --config $rootDir/app/caddyfile --adapter caddyfile
a. System environment:
Mac today but will deploy to alpine linux.
b. Command:
NA
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane. -->
d. My complete Caddy config:
: cat app/caddyfile
{
debug
local_certs
https_port 3001
auto_https disable_redirects
}
auth0.local.net {
handle / {
root * app/sim
templates
file_server
}
handle /.well-known/openid-configuration {
root * app/sim
rewrite * /.well-known/openid-configuration
file_server
}
handle /.well-known/jwks.json {
root * app/sim
rewrite * /.well-known/jwks.json
file_server
}
handle /authorize {
root * app/sim
rewrite * /authorize.html
# Delete nonc
file_server
}
}
3. The problem I’m having:
I am building an OAuth Provider Simulator and need to generate custom output.
I have this:
<form id="auth0Callback" method="post" action="https://localhost:5001/authenticate/callback">
<input type="hidden" name="code" value="{{ authorization_code }}"/>
</form>
And I want to generate an authorization code. I see the terms plugins, modules and extensions in the documentation and am unclear which to investigate. Just looking for a hint before I dig deeper.
4. Error messages and/or full log output:
No errors yet.
5. What I already tried:
NA