Conversation
… align host script with public API Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove legacy auth references from documentation
Remove legacy auth request-path references from workflow examples and example scripts
Mar 15, 2026
blindzero
approved these changes
Mar 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates user-facing workflow templates and example scripts to remove legacy Request.Auth.* / Request.Intent.Auth.* template references and align examples with the current auth model: With.AuthSessionName as a fixed string and host-provided Providers.AuthSessionBroker via the public API.
Changes:
- Update AD joiner workflow templates to use
AuthSessionName = 'Directory'instead of legacy request-path templating. - Update Entra Connect + Entra ID joiner template to use the same fixed
AuthSessionNamepattern. - Update the leaver example script to use the public
New-IdleAuthSessionwrapper instead of the internalNew-IdleAuthSessionBroker, and rename the variable accordingly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| examples/workflows/templates/ad-joiner.psd1 | Replaces legacy {{Request.Auth.Directory}} auth-session templating with fixed AuthSessionName = 'Directory'. |
| examples/workflows/templates/ad-joiner-entraconnect-entraid.psd1 | Replaces {{Request.Intent.Auth.Directory}} with fixed AuthSessionName = 'Directory' for the Directory provider step. |
| examples/Invoke-LeaverWithManagerOOF.ps1 | Uses New-IdleAuthSession (public API) and updates provider map to use $authSessionBroker. |
Code Coverage Report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow examples were using
{{Request.Auth.*}}and{{Request.Intent.Auth.*}}template paths forAuthSessionName, embedding auth session selection into request data — inconsistent with the current model whereAuthSessionNameis a fixed string in the workflow.Changes
examples/workflows/templates/ad-joiner.psd1— Replace 9 occurrences ofAuthSessionName = '{{Request.Auth.Directory}}'withAuthSessionName = 'Directory', matching the pattern already used inad-leaver.psd1and all other templates.examples/workflows/templates/ad-joiner-entraconnect-entraid.psd1— ReplaceAuthSessionName = '{{Request.Intent.Auth.Directory}}'withAuthSessionName = 'Directory'for the same reason.examples/Invoke-LeaverWithManagerOOF.ps1— ReplaceNew-IdleAuthSessionBroker(internalIdLE.Corefunction) withNew-IdleAuthSession(the public API exported byIdLE); rename$authBroker→$authSessionBrokerto match the walkthrough docs.Before / after (ad-joiner.psd1):
Before / after (Invoke-LeaverWithManagerOOF.ps1):
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.