Skip to content

Commit

Permalink
Fix auth in OpenAI CADL
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Jan 13, 2023
1 parent 2333be8 commit aa8a601
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions specification/cognitiveservices/OpenAI.Authoring/main.cadl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ using Cadl.Http;
using Cadl.Versioning;

@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "apiKey"> |
ApiKeyAuth<ApiKeyLocation.header, "api-key"> |
OAuth2Auth<[{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
scopes: []
scopes: ["https://cognitiveservices.azure.com/.default"]
}]>)
@service({title: "Azure OpenAI API"})
@versioned(Azure.OpenAI.Versions)
Expand Down
4 changes: 2 additions & 2 deletions specification/cognitiveservices/OpenAI.Inference/main.cadl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ using Cadl.Rest;
using Cadl.Versioning;

@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "apiKey"> |
ApiKeyAuth<ApiKeyLocation.header, "api-key"> |
OAuth2Auth<[{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
scopes: []
scopes: ["https://cognitiveservices.azure.com/.default"]
}]>)
@service(
{
Expand Down

0 comments on commit aa8a601

Please sign in to comment.