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 data into external account authorized user credentials for accessing Google APIs.
Build a tool that takes OAuth 2.0 session information from a third-party identity provider and converts it into properly formatted external account authorized user credentials that can be used with Google's authentication library.
The tool should:
The input JSON file contains OAuth session data with the following structure:
{
"token": {
"access_token": "...",
"refresh_token": "...",
"expires_at": 1234567890
},
"client_config": {
"client_id": "...",
"client_secret": "...",
"auth_uri": "...",
"token_uri": "...",
"token_info_url": "..."
},
"scopes": ["scope1", "scope2"]
}python converter.py --input session.json --output credentials.jsonThe tool should display:
Created external account credentials
Client ID: <client_id>
Scopes: <comma-separated-scopes>
Token URI: <token_uri>
Credentials saved to: credentials.jsonThe output JSON file should contain valid external account authorized user credentials.
@generates
Provides OAuth 2.0 integration with Google authentication, including support for external account authorized user credentials.
@satisfied-by