Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
{
"context": "This criteria evaluates the engineer's proficiency in using the @azure/core-auth package's named key authentication functionality, specifically the AzureNamedKeyCredential class and isNamedKeyCredential type guard. The focus is on proper usage of the package's API for credential creation, property access, rotation, and validation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "AzureNamedKeyCredential instantiation",
"description": "Uses the AzureNamedKeyCredential class constructor with both name and key parameters to create credential instances",
"max_score": 20
},
{
"name": "Name property access",
"description": "Correctly accesses the readonly 'name' property of AzureNamedKeyCredential instances",
"max_score": 10
},
{
"name": "Key property access",
"description": "Correctly accesses the readonly 'key' property of AzureNamedKeyCredential instances",
"max_score": 10
},
{
"name": "Update method usage",
"description": "Uses the update() method of AzureNamedKeyCredential to atomically rotate both name and key values",
"max_score": 25
},
{
"name": "isNamedKeyCredential type guard",
"description": "Uses the isNamedKeyCredential() function to validate whether an object is a valid NamedKeyCredential",
"max_score": 20
},
{
"name": "Error handling integration",
"description": "Properly handles TypeErrors thrown by AzureNamedKeyCredential constructor and update() method for empty or undefined values",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-azure--core-authdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10