mod_http_oauth2/mod_http_oauth2.lua
changeset 5249 e22cae58141d
parent 5248 fa7bd721a3f6
child 5250 fd0d25b42cd9
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 11 22:58:47 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sun Mar 12 11:27:29 2023 +0100
@@ -684,11 +684,17 @@
 module:depends("http");
 module:provides("http", {
 	route = {
-		["POST /token"] = handle_token_grant;
+		-- User-facing login and consent view
 		["GET /authorize"] = handle_authorization_request;
 		["POST /authorize"] = handle_authorization_request;
+
+		-- Create OAuth client
+		["POST /register"] = handle_register_request;
+
+		["POST /token"] = handle_token_grant;
 		["POST /revoke"] = handle_revocation_request;
-		["POST /register"] = handle_register_request;
+
+		-- OpenID
 		["GET /userinfo"] = handle_userinfo_request;
 
 		-- Optional static content for templates