Skip to content

Add CDT validation for OBO and long-running web API flows#3781

Closed
trwalke wants to merge 1 commit into
masterfrom
trwalke/cdt-validation-obo
Closed

Add CDT validation for OBO and long-running web API flows#3781
trwalke wants to merge 1 commit into
masterfrom
trwalke/cdt-validation-obo

Conversation

@trwalke
Copy link
Copy Markdown
Member

@trwalke trwalke commented Apr 16, 2026

Removed

When tokenUsedToCallTheWebApi is a Constrained Delegation Token (CDT),
validate that ExtraParameters contains a 'Cdt' entry before calling
AcquireTokenOnBehalfOf or InitiateLongRunningProcessInWebApi. A CDT is
detected by checking for 't' and 'c' claims in the JWT payload.

Throws ArgumentException (IDW10506) when the CDT entry is missing.

Includes 12 unit tests covering IsCdt detection and the validation logic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@trwalke trwalke requested a review from a team as a code owner April 16, 2026 06:53
@trwalke trwalke closed this Apr 16, 2026
@bgavrilMS
Copy link
Copy Markdown
Member

Let's not add any CDT logic in this SDK pls

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants