Skip to content

Propagate long running web API session key back to caller in user token acquisition flow#3728

Merged
cpp11nullptr merged 2 commits into
masterfrom
iepoly/propagate-long-runinning-obo-session-key-for-user-token-acquisition
Feb 19, 2026
Merged

Propagate long running web API session key back to caller in user token acquisition flow#3728
cpp11nullptr merged 2 commits into
masterfrom
iepoly/propagate-long-runinning-obo-session-key-for-user-token-acquisition

Conversation

@cpp11nullptr

Copy link
Copy Markdown
Contributor

When long running web API session is created with "AllocateForMe" session key, a new session key is auto-generated and set in tokenAcquisitionOptions. This change propagates a new session key to caller of TokenAcquirer::GetTokenForUserAsync() so consumer side can use this key to fetch cached token later.

Note that CreateAuthorizationHeaderForUserAsync scenario already does it so no changes are needed there.

@cpp11nullptr cpp11nullptr requested a review from a team as a code owner February 18, 2026 19:38
@bgavrilMS bgavrilMS requested a review from trwalke February 18, 2026 19:42
@bgavrilMS

Copy link
Copy Markdown
Member

@trwalke - pls review.

Comment thread src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquirer.cs
Comment thread src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquirer.cs
@cpp11nullptr cpp11nullptr merged commit 4b5fc3b into master Feb 19, 2026
4 checks passed
@cpp11nullptr cpp11nullptr deleted the iepoly/propagate-long-runinning-obo-session-key-for-user-token-acquisition branch February 19, 2026 11:42
This was referenced Mar 1, 2026
This was referenced May 26, 2026
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.

4 participants