mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-05 12:03:01 -05:00
fix(proxy): answer 403 instead of 500 when the role claim is missing
With PROXY_ROLE_ASSIGNMENT_DRIVER=oidc, a token whose claims give no OpenCloud role made the account resolver answer 500. Mark these claim errors with userroles.ErrRoleClaim and answer 403 for them. Failures of the settings or gateway service still answer 500. Signed-off-by: Ryo Kusnadi <ryokusnadi@gmail.com>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f