CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-azure--core-auth

Provides low-level interfaces and helper methods for authentication in Azure SDK

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation assesses how effectively the engineer uses the AzureKeyCredential class from @azure/core-auth to implement key-based authentication with rotation capabilities. The focus is on proper usage of the package's API, including credential instantiation, key access, and the update() method for key rotation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "AzureKeyCredential Import",
      "description": "Correctly imports AzureKeyCredential from @azure/core-auth package",
      "max_score": 10
    },
    {
      "name": "Credential Instantiation",
      "description": "Creates an AzureKeyCredential instance in the constructor using 'new AzureKeyCredential(initialKey)'",
      "max_score": 25
    },
    {
      "name": "Credential Storage",
      "description": "Stores the AzureKeyCredential instance as a class member/property for reuse across methods",
      "max_score": 15
    },
    {
      "name": "getCredential Implementation",
      "description": "Returns the stored AzureKeyCredential instance from getCredential() method",
      "max_score": 15
    },
    {
      "name": "Key Rotation",
      "description": "Uses the update() method of AzureKeyCredential to rotate the key in rotateKey() method",
      "max_score": 25
    },
    {
      "name": "Key Access",
      "description": "Accesses the current key value using the 'key' property of AzureKeyCredential in getCurrentKey() method",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-azure--core-auth

tile.json