diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index e1a828eb56e5..d507d0a4e026 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -9,11 +9,7 @@ enum ServiceApiVersions { } @useAuth( - ApiKeyAuth | OAuth2Auth<[{ - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", - scopes: ["https://eventgrid.azure.net/.default"], - }]> + ApiKeyAuth ) @service({ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml new file mode 100644 index 000000000000..d99c4a42088c --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml @@ -0,0 +1,6 @@ +options: + # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code + "@azure-tools/typespec-csharp": + model-namespace: false + generate-convenience-methods: false + namespace: Azure.Messaging.EventGrid.Namespaces \ No newline at end of file