Skip to content

Support generating ApiKey with prefix  #1870

Closed
@lmazuel

Description

@lmazuel

This TypeSpec:

@useAuth({
  type: AuthType.http,
  scheme: "SharedAccessKey",
})

Means to authenticate using the headers:

Authorization: SharedAccessKey <put my key here>

TypeScript Azure-Core do not provide support for this, see additional discussion here:
Azure/azure-sdk-for-js#25683

Work item is to recognize the TypeSpec, and configure the AzureKeyCredentialPolicy with a prefix.

Cadl-Ranch test:
Azure/cadl-ranch#262

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions