Skip to content

Commit

Permalink
fix: handle user banned error code (#1851)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Placeholder solution.

Need to:
- [x] Manually test
  • Loading branch information
J0 authored Dec 13, 2024
1 parent 483463e commit a6918f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/token_oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ func (a *API) IdTokenGrant(ctx context.Context, w http.ResponseWriter, r *http.R
switch err.(type) {
case *storage.CommitWithError:
return err
case *HTTPError:
return err
default:
return oauthError("server_error", "Internal Server Error").WithInternalError(err)
}
Expand Down

0 comments on commit a6918f4

Please sign in to comment.