You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting and this would be a codegen bug and the customKeyCredentialPolicy should only be added when the credential is KeyCredential. I will work on the fix.
@yufeih I'd like to confirm with you one detail, for BearerAuth regarding the word bearer in Authorization header do we(server side) care about it is capital case or lower case?
@yufeih I'd like to confirm with you one detail, for BearerAuth regarding the word bearer in Authorization header do we(server side) care about it is capital case or lower case?
Our server should treat is as case insensitive, it seems Bearer is more appropriate. Here is the codegen for C#:
@azure-tools/typespec-ts
version: 0.19.0When using both
BearerAuth
andOAuth2Auth
, the generated code results inTS2339
error.TypeSpec file:
Generated code:
Error:
The text was updated successfully, but these errors were encountered: