Add public properties to google.oauth2.credentials.Credentials (#124)
diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py
index 9727e18..077a95f 100644
--- a/google/oauth2/credentials.py
+++ b/google/oauth2/credentials.py
@@ -69,6 +69,27 @@
self._client_secret = client_secret
@property
+ def refresh_token(self):
+ """Optional[str]: The OAuth 2.0 refresh token."""
+ return self._refresh_token
+
+ @property
+ def token_uri(self):
+ """Optional[str]: The OAuth 2.0 authorization server's token endpoint
+ URI."""
+ return self._token_uri
+
+ @property
+ def client_id(self):
+ """Optional[str]: The OAuth 2.0 client ID."""
+ return self._client_id
+
+ @property
+ def client_secret(self):
+ """Optional[str]: The OAuth 2.0 client secret."""
+ return self._client_secret
+
+ @property
def requires_scopes(self):
"""False: OAuth 2.0 credentials have their scopes set when
the initial token is requested and can not be changed."""