Welcome! Log In Create A New Profile

Advanced

[PATCH] Allow external auth server to return http status code 429 (too many requests)

Serhii Smitiienko
August 01, 2022 02:42AM
# HG changeset patch
# User Serhii Smitiienko <hunter@nocservice.biz>
# Date 1659334979 -10800
# Mon Aug 01 09:22:59 2022 +0300
# Node ID 2baa3e46385ac3c671d257dfe715bff54c896855
# Parent 069a4813e8d6d7ec662d282a10f5f7062ebd817f
Allow external auth server to return http status code 429 (too many requests)

diff -r 069a4813e8d6 -r 2baa3e46385a src/http/modules/ngx_http_auth_request_module.c
--- a/src/http/modules/ngx_http_auth_request_module.c Tue Jul 19 17:05:27 2022 +0300
+++ b/src/http/modules/ngx_http_auth_request_module.c Mon Aug 01 09:22:59 2022 +0300
@@ -134,7 +134,7 @@

/* return appropriate status */

- if (ctx->status == NGX_HTTP_FORBIDDEN) {
+ if (ctx->status == NGX_HTTP_FORBIDDEN || ctx->status == NGX_HTTP_TOO_MANY_REQUESTS) {
return ctx->status;
}


_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[PATCH] Allow external auth server to return http status code 429 (too many requests)

Serhii Smitiienko 552 August 01, 2022 02:42AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready