autorest icon indicating copy to clipboard operation
autorest copied to clipboard

[tsp-client convert] ARM converter adds @useAuth to main.tsp

Open darkoa-msft opened this issue 6 months ago • 0 comments

Before filling a bug

  • [x] have you checked the faq for known issues.
  • [x] have you checked existing issues

tsp-client convert --arm adds @useAuth(AadOauth2Auth<["user_impersonation"]>) to main.tsp, which causes the wrong security definition to be created in ARM swagger.

Expected behavior After conversion, running tsp compile should produce the standard security definition.

Additional context To repro, take an existing swagger, convert it and check main.tsp

darkoa-msft avatar Aug 14 '24 19:08 darkoa-msft