chore: Add base credential service interface (WIP)

PiperOrigin-RevId: 771358480
This commit is contained in:
Xiang (Sean) Zhou
2025-06-13 23:24:30 -07:00
committed by Copybara-Service
parent b51a1f45fd
commit 8ebf229c47
7 changed files with 175 additions and 91 deletions
+3 -3
View File
@@ -387,7 +387,7 @@ class TestGetAuthResponse:
state = MockState()
# Store a credential in the state
credential_key = auth_config.get_credential_key()
credential_key = auth_config.credential_key
state["temp:" + credential_key] = oauth2_credentials_with_auth_uri
result = handler.get_auth_response(state)
@@ -418,7 +418,7 @@ class TestParseAndStoreAuthResponse:
handler.parse_and_store_auth_response(state)
credential_key = auth_config.get_credential_key()
credential_key = auth_config.credential_key
assert (
state["temp:" + credential_key] == auth_config.exchanged_auth_credential
)
@@ -436,7 +436,7 @@ class TestParseAndStoreAuthResponse:
handler.parse_and_store_auth_response(state)
credential_key = auth_config_with_exchanged.get_credential_key()
credential_key = auth_config_with_exchanged.credential_key
assert state["temp:" + credential_key] == mock_exchange_token.return_value
assert mock_exchange_token.called