Skip to content

[http-client-csharp] It is incorrect that OAuth2 authentication defined in the spec is silently ignored #5301

@ArcturusZhang

Description

@ArcturusZhang

Currently we do not support OAuth2 in unbranded client gen right now, and the current behavior in our code gen is to ignore it as if there is no auth (when only OAuth2 is defined).
This behavior is kind of incorrect - we generate wrong code and the user never gets a notification.

It also does not make sense if we throw exception whenever an OAuth2 authentication is defined - the user will never get a valid result or even a partial result so that they could make customization code to support such scenarios.

One possible solution for this is that we write a warning for this to inform the user that this is currently unsupported.

Metadata

Metadata

Assignees

Labels

emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions