Google Authentication Library - oauthlib integration for OAuth 2.0 flows.
83
{
"context": "This criteria evaluates how well the engineer uses google-auth-oauthlib to convert OAuth 2.0 sessions into Google-compatible credentials. The focus is on proper use of the library's session-to-credentials conversion functionality and understanding of how to extract and preserve token information.",
"type": "weighted_checklist",
"checklist": [
{
"name": "OAuth Session Import",
"description": "Uses google_auth_oauthlib.helpers.credentials_from_session or creates google.oauth2.credentials.Credentials directly with proper imports from google-auth-oauthlib or google-auth",
"max_score": 25
},
{
"name": "Access Token Extraction",
"description": "Correctly extracts the access token from the OAuth session's token dictionary and passes it to the credentials object",
"max_score": 15
},
{
"name": "Refresh Token Handling",
"description": "Correctly extracts and includes the refresh token from the OAuth session in the credentials object",
"max_score": 15
},
{
"name": "Client Configuration",
"description": "Properly sets client_id, client_secret, and token_uri in the credentials object",
"max_score": 15
},
{
"name": "ID Token Support",
"description": "Extracts and includes ID token from the session token dictionary when present",
"max_score": 10
},
{
"name": "Token Expiry",
"description": "Correctly handles and preserves token expiry information from the session",
"max_score": 10
},
{
"name": "Scope Management",
"description": "Properly extracts and sets OAuth scopes and granted scopes from the session",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-google-auth-oauthlibevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10