Skip to content

Commit 6339240

Browse files
committed
do not refresh token in 403 status code
Signed-off-by: MUzairS15 <[email protected]>
1 parent 29c07a6 commit 6339240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/models/remote_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (l *RemoteProvider) DoRequest(req *http.Request, tokenString string) (*http
3737
return nil, ErrTokenRefresh(err)
3838
}
3939

40-
if resp.StatusCode == 401 || resp.StatusCode == 403 {
40+
if resp.StatusCode == 401 {
4141
// Read and close response body before reusing request
4242
// https://github.com/golang/go/issues/19653#issuecomment-341540384
4343
_, _ = io.ReadAll(resp.Body)

0 commit comments

Comments
 (0)