diff options
author | Julien Boeuf <jboeuf@google.com> | 2017-11-08 16:44:04 -0800 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2017-11-08 23:28:58 -0800 |
commit | 5addba474981b205bdce991b502a5d925965d0dd (patch) | |
tree | cca6dcb0923ec28904b5eef2c85896107d8063e5 /src/core/lib | |
parent | 2575141dc0b4ed25470fc723e63128356528e4e8 (diff) |
Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure
Typically these failures are symptomatic of a busy oauth2 auth
server and calls should be retried in this case.
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/security/transport/client_auth_filter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/security/transport/client_auth_filter.cc b/src/core/lib/security/transport/client_auth_filter.cc index 11f5a13ccc..509d6405ac 100644 --- a/src/core/lib/security/transport/client_auth_filter.cc +++ b/src/core/lib/security/transport/client_auth_filter.cc @@ -113,7 +113,7 @@ static void on_credentials_metadata(grpc_exec_ctx* exec_ctx, void* arg, grpc_call_next_op(exec_ctx, elem, batch); } else { error = grpc_error_set_int(error, GRPC_ERROR_INT_GRPC_STATUS, - GRPC_STATUS_UNAUTHENTICATED); + GRPC_STATUS_UNAVAILABLE); grpc_transport_stream_op_batch_finish_with_failure(exec_ctx, batch, error, calld->call_combiner); } |