mod_http_oauth2/mod_http_oauth2.lua
changeset 5480 575f52b15f5a
parent 5479 022733437fef
child 5481 5986e0edd7a3
--- a/mod_http_oauth2/mod_http_oauth2.lua	Thu May 18 14:02:09 2023 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Thu May 18 14:07:37 2023 +0200
@@ -326,7 +326,7 @@
 		id_token = id_token;
 	});
 	if not ok then
-		return {status_code = 429};
+		return oauth_error("temporarily_unavailable");
 	end
 
 	local redirect_uri = get_redirect_uri(client, params.redirect_uri);