File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static Status clientAuthorizationCheck(
37
37
AltsAuthContext altsContext =
38
38
(AltsAuthContext ) call .getAttributes ().get (AltsProtocolNegotiator .AUTH_CONTEXT_KEY );
39
39
if (altsContext == null ) {
40
- return Status .NOT_FOUND .withDescription ("Peer ALTS AuthContext not found" );
40
+ return Status .PERMISSION_DENIED .withDescription ("Peer ALTS AuthContext not found" );
41
41
}
42
42
if (expectedServiceAccounts .contains (altsContext .getPeerServiceAccount ())) {
43
43
return Status .OK ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public void altsAuthorizationCheck() throws Exception {
42
42
Status status =
43
43
AuthorizationUtil .clientAuthorizationCheck (
44
44
new FakeServerCall (null ), Lists .newArrayList ("Alice" ));
45
- assertThat (status .getCode ()).isEqualTo (Status .Code .NOT_FOUND );
45
+ assertThat (status .getCode ()).isEqualTo (Status .Code .PERMISSION_DENIED );
46
46
assertThat (status .getDescription ()).startsWith ("Peer ALTS AuthContext not found" );
47
47
status =
48
48
AuthorizationUtil .clientAuthorizationCheck (
You can’t perform that action at this time.
0 commit comments