Google Authentication Library - oauthlib integration for OAuth 2.0 flows.
83
{
"context": "This evaluation assesses how effectively the engineer uses google-auth-oauthlib package functions to load OAuth client configuration from files, validate configuration parameters, and create properly configured OAuth2Session instances for authorization flows.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Load client secrets",
"description": "Uses google_auth_oauthlib.helpers.load_client_secrets() or similar function from the package to read and parse the client secrets JSON file",
"max_score": 25
},
{
"name": "Handle client types",
"description": "Correctly handles both 'installed' and 'web' client type configurations from the loaded client secrets, properly extracting the nested configuration structure",
"max_score": 15
},
{
"name": "Session creation function",
"description": "Uses google_auth_oauthlib.helpers.session_from_client_config() or google_auth_oauthlib.helpers.session_from_client_secrets_file() to create OAuth2Session instances",
"max_score": 30
},
{
"name": "Configuration validation",
"description": "Validates that required OAuth fields (auth_uri, token_uri, client_id) are present in the configuration before creating the session",
"max_score": 15
},
{
"name": "Scope handling",
"description": "Correctly passes scopes parameter when creating the OAuth2Session so that the session is configured with the requested OAuth scopes",
"max_score": 10
},
{
"name": "Error handling",
"description": "Properly handles and raises appropriate errors for missing files, invalid configuration formats, and missing required fields as specified in the problem",
"max_score": 5
}
]
}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