


_rfc6749 section 4.1: """ from datetime import datetime import io import json import six from th import _cloud_sdk from th import _helpers from th import credentials from th import exceptions from google.oauth2 import reauth # The Google OAuth 2.0 token endpoint. Consult `rfc6749 section 4.1`_ for complete details on the Authorization Code grant flow. Obtaining the initial access and refresh token is outside of the scope of this module. Specifically, this is intended to use access tokens acquired using the `Authorization Code grant`_ and can refresh those tokens using a optional `refresh token`_. These credentials usually access resources on behalf of a user (resource owner). This module provides credentials based on OAuth 2.0 access and refresh tokens.

# See the License for the specific language governing permissions and # limitations under the License. # You may obtain a copy of the License at # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # Copyright 2016 Google LLC # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License.
