Skip to content

authz: Gracefully handle temporary provider errors

Administrator requested to merge rs/auth-timeout into main

Created by: ryanslade

We now return the previously synced user permissions when we hit a temporary error reading the current permissions from a provider. The previous logic would return no permissions which meant that actual permissions would flip on and off when we hit temporary issues communicating with the auth provider.

Closes https://github.com/sourcegraph/sourcegraph/issues/36775

Test plan

Unit tests added

Merge request reports

Loading