Skip to content

Correct auth session acquisition flow in provider documentation#137

Closed
Copilot wants to merge 3 commits intowebsitefrom
copilot/sub-pr-136
Closed

Correct auth session acquisition flow in provider documentation#137
Copilot wants to merge 3 commits intowebsitefrom
copilot/sub-pr-136

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 1, 2026

The provider reference incorrectly stated that providers acquire auth sessions via Context.AcquireAuthSession(...). In reality, steps acquire sessions and pass them to provider methods.

Changes

  • Line 23 (Choosing a provider): Clarified that steps acquire auth sessions via Context.AcquireAuthSession(...) and pass them to provider methods that accept an optional AuthSession parameter
  • Line 39 (Authoring a provider): Updated checklist item to reflect that provider methods accept an optional AuthSession parameter rather than acquiring sessions themselves

Actual Flow

# In Invoke-IdleProviderMethod.ps1 (step helper):
$authSession = $Context.AcquireAuthSession($sessionName, $sessionOptions)

# Provider method receives the session:
if ($supportsAuthSession -and $null -ne $authSession) {
    return $provider.$MethodName.Invoke($MethodArguments + $authSession)
}

Providers are passive recipients of auth sessions, not active acquirers.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot AI changed the title [WIP] Update website documentation based on review feedback Correct auth session acquisition flow in provider documentation Feb 1, 2026
Copilot AI requested a review from blindzero February 1, 2026 17:09
@blindzero blindzero closed this Feb 1, 2026
@blindzero blindzero deleted the copilot/sub-pr-136 branch February 7, 2026 22:49
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