Skip to content

Commit

Permalink
update with new changes (#25299)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence authored and jnlycklama committed Nov 8, 2023
1 parent 0b1edca commit 62fbb30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion specification/eventgrid/Azure.Messaging.EventGrid/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";

@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "SharedAccessKey"> | OAuth2Auth<[
{
type: AuthType.http,
scheme: "SharedAccessKey",
} | OAuth2Auth<[
{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"security": [
{
"ApiKeyAuth": []
"http": []
},
{
"OAuth2Auth": [
Expand All @@ -45,18 +45,16 @@
}
],
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "SharedAccessKey",
"in": "header"
},
"OAuth2Auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"https://eventgrid.azure.net/.default": ""
}
},
"http": {
"type": "basic"
}
},
"tags": [],
Expand Down

0 comments on commit 62fbb30

Please sign in to comment.