# HG changeset patch # User Kim Alvefur # Date 1682866733 -7200 # Node ID 9b9d612f9083fa4b58145c3200604fa425e6e53a # Parent c0a6f39caf476e2a2e0dc956050582672bd4ff1b mod_http_oauth2: Add way to retrieve registration schema Mostly for convenience and to fill the void otherwise and drive the awkward fallback to 404 away. diff -r c0a6f39caf47 -r 9b9d612f9083 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sun Apr 30 16:42:04 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Apr 30 16:58:53 2023 +0200 @@ -915,6 +915,9 @@ }; body = templates.js; } or nil; + + -- Some convenient fallback handlers + ["GET /register"] = { headers = { content_type = "application/schema+json" }; body = json.encode(registration_schema) }; }; });