Skip to content

[coverage] Conformance findings: AUTH-012 #258

Closed as not planned
Closed as not planned

Description

@oss-engineer-bot

Summary

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-kernel. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-kernel) is fixed, then flips green as a tripwire.

Findings

  • AUTH-012 [sea]: An empty identity_federation_client_id is not normalised to absent: AuthConfig::pat/oauth_m2m/oauth_u2m keep Some("") and FederationProvider::exchange treats it as SP-wide WIF, sending an empty identity_federation_client_id form field and dropping return_original_token_if_authenticated=true for foreign-issuer JWT/BYOT callers; forwarding should be gated on a non-empty value (the C-ABI required_str setter and the pyo3 kwarg both pass "" through).
    • failing test: identity_federation_client_id_forwarding, identity_federation_client_id_empty_treated_as_absent (see the coverage PR diff under tests/)
  • AUTH-012: An empty identity_federation_client_id is not normalised to absent: AuthConfig::pat/oauth_m2m/oauth_u2m keep Some("") and FederationProvider::exchange treats it as SP-wide WIF, sending an empty identity_federation_client_id form field and dropping return_original_token_if_authenticated=true for foreign-issuer JWT/BYOT callers; forwarding should be gated on a non-empty value (the C-ABI required_str setter and the pyo3 kwarg both pass "" through).

Reproduce & Expected

AUTH-012 — Verifies the connect-level identity_federation_client_id option (the service-principal client ID that selects mandatory SP-wide workload-identity token exchange) is ACCEPTED alongside whichever aut…

Reproduce:

SELECT 1 AS test_value
SELECT 1 AS test_value

Expected (per the shared spec):

  • completes without an exception
  • result has exactly 1 row(s)
  • completes without an exception
  • result has exactly 1 row(s)
  • full assertion contract:
result:
- label: omitted
  no_exception: true
- label: omitted
  row_count: 1
- label: omitted
  federation_client_id_forwarded: false
- label: empty
  no_exception: true
- label: empty
  row_count: 1
- label: empty
  federation_client_id_forwarded: false
- label: supplied_pat
  federation_client_id_forwarded: true
- label: supplied_m2m
  federation_client_id_forwarded: true

Context

Activity

  1. github-actions commented on Sep 17, 2026

    @github-actions

    This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.

  2. github-actions commented on Sep 24, 2026

    @github-actions

    This issue was closed because it has been inactive for 7 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions