From 7f886be8e7ea143c8e22d711cf6367b4b0e09b89 Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Wed, 27 Sep 2023 13:27:29 -0700 Subject: [PATCH] update with new changes --- .../eventgrid/Azure.Messaging.EventGrid/main.tsp | 5 ++++- .../preview/2023-06-01-preview/EventGrid.json | 10 ++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index a960ef3b0609..8d7b183e3486 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -4,7 +4,10 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; @useAuth( - ApiKeyAuth | OAuth2Auth<[ + { + type: AuthType.http, + scheme: "SharedAccessKey", + } | OAuth2Auth<[ { type: OAuth2FlowType.implicit, authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index b1f72aabafda..107ea52e94fc 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -36,7 +36,7 @@ ], "security": [ { - "ApiKeyAuth": [] + "http": [] }, { "OAuth2Auth": [ @@ -45,11 +45,6 @@ } ], "securityDefinitions": { - "ApiKeyAuth": { - "type": "apiKey", - "name": "SharedAccessKey", - "in": "header" - }, "OAuth2Auth": { "type": "oauth2", "flow": "implicit", @@ -57,6 +52,9 @@ "scopes": { "https://eventgrid.azure.net/.default": "" } + }, + "http": { + "type": "basic" } }, "tags": [],