Skip to content

Commit 62fbb30

Browse files
l0lawrencejnlycklama
authored andcommitted
update with new changes (#25299)
1 parent 0b1edca commit 62fbb30

File tree

2 files changed

+8
-7
lines changed
  • specification/eventgrid

2 files changed

+8
-7
lines changed

specification/eventgrid/Azure.Messaging.EventGrid/main.tsp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import "@typespec/versioning";
44
import "@azure-tools/typespec-azure-core";
55

66
@useAuth(
7-
ApiKeyAuth<ApiKeyLocation.header, "SharedAccessKey"> | OAuth2Auth<[
7+
{
8+
type: AuthType.http,
9+
scheme: "SharedAccessKey",
10+
} | OAuth2Auth<[
811
{
912
type: OAuth2FlowType.implicit,
1013
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize",

specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
],
3737
"security": [
3838
{
39-
"ApiKeyAuth": []
39+
"http": []
4040
},
4141
{
4242
"OAuth2Auth": [
@@ -45,18 +45,16 @@
4545
}
4646
],
4747
"securityDefinitions": {
48-
"ApiKeyAuth": {
49-
"type": "apiKey",
50-
"name": "SharedAccessKey",
51-
"in": "header"
52-
},
5348
"OAuth2Auth": {
5449
"type": "oauth2",
5550
"flow": "implicit",
5651
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
5752
"scopes": {
5853
"https://eventgrid.azure.net/.default": ""
5954
}
55+
},
56+
"http": {
57+
"type": "basic"
6058
}
6159
},
6260
"tags": [],

0 commit comments

Comments
 (0)