Files
passkey-auth/caddy/auth/require

19 lines
584 B
Plaintext

# Permission to use within your endpoints that need authentication/authorization, that
# is different depending on the route (otherwise use auth/all).
forward_auth {$AUTH_UPSTREAM:localhost:4401} {
uri /auth/api/forward?{args[0]}
header_up Connection keep-alive # Much higher performance
header_up -Upgrade # Disable Upgrade: WebSocket
copy_headers {
Remote-User
Remote-Name
Remote-Groups
Remote-Org
Remote-Org-Name
Remote-Role
Remote-Role-Name
Remote-Session-Expires
Remote-Credential
}
}