Skip to content

Changed default authentication provider to "Unauthenticated" in dab.draft.schema.json.#3424

Merged
Aniruddh25 merged 2 commits intomainfrom
dev/anushakolan/change-default-auth-to-appservice
Apr 14, 2026
Merged

Changed default authentication provider to "Unauthenticated" in dab.draft.schema.json.#3424
Aniruddh25 merged 2 commits intomainfrom
dev/anushakolan/change-default-auth-to-appservice

Conversation

@anushakolan
Copy link
Copy Markdown
Contributor

Why make this change?

Closes #3392.

The JSON schema default for runtime.host.authentication.provider was set to AppService, while CLI help text and docs indicate the default should be Unauthenticated. This mismatch can confuse users and tooling.

What is this change?

  • Updated the schema default in schemas/dab.draft.schema.json:
    • runtime.host.authentication.provider: AppService -> Unauthenticated
  • No runtime behavior changes were introduced beyond aligning the schema default value.

How was this tested?

  • Integration Tests
  • Unit Tests

Ran:

  • dotnet test src/Service.Tests/Azure.DataApiBuilder.Service.Tests.csproj --framework net8.0 --filter "FullyQualifiedName~CorsUnitTests.TestCorsConfigReadCorrectly"

Sample Request(s)

CLI example:

  • dab configure --runtime.host.authentication.provider AppService
  • This demonstrates overriding the default.

Config example:

  • Omit runtime.host.authentication.provider from config.
  • Schema default resolves it to Unauthenticated.

Copilot AI review requested due to automatic review settings April 9, 2026 22:08
@anushakolan anushakolan changed the title Changed default authentication provider to "Unauthnticated" in dab.dr… Changed default authentication provider to "Unauthenticated" in dab.dr… Apr 9, 2026
@anushakolan anushakolan changed the title Changed default authentication provider to "Unauthenticated" in dab.dr… Changed default authentication provider to "Unauthenticated" in dab.draft.schema.json. Apr 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the JSON schema’s default authentication provider with the documented/CLI-indicated default to avoid confusing users and tooling (closes #3392).

Changes:

  • Updated runtime.host.authentication.provider schema default from AppService to Unauthenticated.

@Aniruddh25 Aniruddh25 merged commit 5bff17d into main Apr 14, 2026
12 checks passed
@Aniruddh25 Aniruddh25 deleted the dev/anushakolan/change-default-auth-to-appservice branch April 14, 2026 21:07
@Aniruddh25 Aniruddh25 added the 2.0 label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Invalid schema runtime.host.authentication.provider → "default": "AppService"

4 participants