Expose id_token in OAuth 2.0 credentials#150
Conversation
google/oauth2/credentials.py
Outdated
| """Optional[str]: The OAuth 2.0 client secret.""" | ||
| return self._client_secret | ||
|
|
||
| @property |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
google/oauth2/service_account.py
Outdated
| def refresh(self, request): | ||
| assertion = self._make_authorization_grant_assertion() | ||
| access_token, expiry, _ = _client.jwt_grant( | ||
| access_token, expiry, refresh_grant_response = _client.jwt_grant( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@dhermes updated. PTAL. |
google/oauth2/credentials.py
Outdated
| self._token_uri = token_uri | ||
| self._client_id = client_id | ||
| self._client_secret = client_secret | ||
| self._refresh_grant_response = None |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
google/oauth2/credentials.py
Outdated
| self.token = access_token | ||
| self.expiry = expiry | ||
| self._refresh_token = refresh_token | ||
| self._id_token = grant_response.get('id_token', self._id_token) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Resolves #149