diff mod_http_oauth2/mod_http_oauth2.lua @ 5476:575f52b15f5a

mod_http_oauth2: Return OAuth error for authz code store error
author Kim Alvefur <zash@zash.se>
date Thu, 18 May 2023 14:07:37 +0200
parents 022733437fef
children 5986e0edd7a3
line wrap: on
line diff
--- 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);