Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openapi-to-tsp] Emit authentication defintion #4791

Closed
Tracked by #72
catalinaperalta opened this issue Nov 6, 2023 · 0 comments · Fixed by #4863
Closed
Tracked by #72

[openapi-to-tsp] Emit authentication defintion #4791

catalinaperalta opened this issue Nov 6, 2023 · 0 comments · Fixed by #4863
Assignees
Labels
Mgmt This issue is related to a management-plane library. openapi-to-tsp Tracks OpenAPI to Cadl converter issues

Comments

@catalinaperalta
Copy link
Member

catalinaperalta commented Nov 6, 2023

For swagger definitions like this one:

"securityDefinitions": {
    "azure_auth": {
      "flow": "implicit",
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
      "scopes": {
        "user_impersonation": "impersonate your user account"
      },
      "type": "oauth2",
      "description": "Azure Active Directory OAuth2 Flow."
    }
  },

Could we support emitting the corresponding TypeSpec definition with @useAuth?

@catalinaperalta catalinaperalta added the openapi-to-tsp Tracks OpenAPI to Cadl converter issues label Nov 6, 2023
@ArthurMa1978 ArthurMa1978 added the Mgmt This issue is related to a management-plane library. label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library. openapi-to-tsp Tracks OpenAPI to Cadl converter issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants