[http-client-csharp] CSharp Emitter should find a better way to handle unsupported authentication #5355
Labels
emitter:client:csharp
Issue for the C# client emitter: @typespec/http-client-csharp
Clear and concise description of the problem
Description of the problem:
Below is the TypeSpec that triggers this feature ask:
https://github.com/allenjzhang/typespec-e2e-demo/blob/main/todoApp/spec/main.tsp
@service({ title: "Todo App", }) @useAuth(BearerAuth | ApiKeyAuth<ApiKeyLocation.cookie, "session-id">)
@useAuth(NoAuth)
Generated code today:
https://github.com/allenjzhang/typespec-e2e-demo/blob/main/todoApp/clients/dotnet/src/Generated/TodoItems.cs
Expected behavior:
The general ask for all languages is to ignore those authentication and don't crash the codeGen.
There are some additional ask from .NET team and the below 2 issues contains the discussion of the expected behavior:
#5301
#5302
workstream this request is associated with
This is related to the TypeSpec E2E scenario and the experience would be integrated into vscode extension.
stakeholders
@lmazuel / @lirenhe
priority and timeline.
We need the E2E ready before end of Jan. For the project of todoApp, the ETA is Jan. 15th
Please refer: https://github.com/allenjzhang/typespec-e2e-demo/blob/main/1.0-E2E-status.md#client-generation
Close Azure/autorest.csharp#5185 as all dotnet items are tracked in this repo.
cc @jsquire
Checklist
The text was updated successfully, but these errors were encountered: