Skip to content

Commit 6c3d92d

Browse files
authored
Correct response code on successful token refresh
This fixes a bug whereby a successful token refresh process would still return a 401 because the original access token generated a 401 status. Now the refresh process sets the status according to the response from the proxied server.
1 parent f20844c commit 6c3d92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ server {
5555
#auth_jwt_key_request /_jwks_uri; # Enable when using URL
5656

5757
# Absent/invalid OpenID Connect token will (re)start auth process (including refresh)
58-
error_page 401 @oidc_auth;
58+
error_page 401 = @oidc_auth;
5959

6060
# Successfuly authenticated users are proxied to the backend,
6161
# with 'sub' claim passed as HTTP header

0 commit comments

Comments
 (0)