Skip to content

Commit a6918f4

Browse files
authored
fix: handle user banned error code (#1851)
## What kind of change does this PR introduce? Placeholder solution. Need to: - [x] Manually test
1 parent 483463e commit a6918f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/api/token_oidc.go

+2
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ func (a *API) IdTokenGrant(ctx context.Context, w http.ResponseWriter, r *http.R
242242
switch err.(type) {
243243
case *storage.CommitWithError:
244244
return err
245+
case *HTTPError:
246+
return err
245247
default:
246248
return oauthError("server_error", "Internal Server Error").WithInternalError(err)
247249
}

0 commit comments

Comments
 (0)