Skip to content

Commit

Permalink
remove context manager API from internal class
Browse files Browse the repository at this point in the history
... will return in another PR
  • Loading branch information
chlowell committed Aug 5, 2021
1 parent a66e926 commit b6b4a57
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ def __init__(self, tenant_id, client_id, get_assertion, **kwargs):
self._client = AadClient(tenant_id, client_id, **kwargs)
super(ClientAssertionCredential, self).__init__(**kwargs)

def __enter__(self):
self._client.__enter__()
return self

def __exit__(self, *args):
self._client.__exit__(*args)

def close(self):
# type: () -> None
"""Close the credential's transport session."""
self.__exit__()

def _acquire_token_silently(self, *scopes, **kwargs):
# type: (*str, **Any) -> Optional[AccessToken]
return self._client.get_cached_access_token(scopes, **kwargs)
Expand Down

0 comments on commit b6b4a57

Please sign in to comment.