Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions specification/eventgrid/Azure.Messaging.EventGrid/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ enum ServiceApiVersions {
}

@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "SharedAccessKey"> | OAuth2Auth<[{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
scopes: ["https://eventgrid.azure.net/.default"],
}]>
ApiKeyAuth<ApiKeyLocation.header, "SharedAccessKey">
)

@service({
Expand Down
Original file line number Diff line number Diff line change
@@ -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