tessl install tessl/pypi-google-auth-oauthlib@1.2.0Google Authentication Library - oauthlib integration for OAuth 2.0 flows.
Agent Success
Agent success rate when using this tile
83%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
79%
A utility that converts OAuth 2.0 session objects into Google-compatible credential objects for use with Google APIs.
@generates
def convert_session_to_credentials(session, client_id, client_secret, token_uri):
"""
Converts an OAuth 2.0 session into Google-compatible credentials.
Args:
session: An OAuth2Session object containing token information
client_id: The OAuth client ID string
client_secret: The OAuth client secret string
token_uri: The token endpoint URI string
Returns:
A Google credentials object compatible with google-auth library
"""
passProvides OAuth 2.0 integration with Google authentication library for converting sessions to credentials.