Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Invoke-LeaverWithManagerOOF.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ $exoProvider = New-IdleMockProvider -Name 'ExchangeOnline' -Capabilities @(
'IdLE.Mailbox.OutOfOffice.Ensure'
)

$authBroker = New-IdleAuthSessionBroker `
$authSessionBroker = New-IdleAuthSession `
-AuthSessionType 'OAuth' `
-DefaultAuthSession ([pscustomobject]@{ Token = 'mock-token' })

$providers = @{
ExchangeOnline = $exoProvider
AuthSessionBroker = $authBroker
AuthSessionBroker = $authSessionBroker
}

# 4. Build plan (templates are resolved here)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Type = 'IdLE.Step.CreateIdentity'
With = @{
Provider = 'Directory'
AuthSessionName = '{{Request.Intent.Auth.Directory}}'
AuthSessionName = 'Directory'

IdentityKey = '{{Request.Intent.SamAccountName}}'

Expand Down
18 changes: 9 additions & 9 deletions examples/workflows/templates/ad-joiner.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Name = 'Create identity (if missing)'
With = @{
# Required by the provider: which auth session to use
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'

# Provider-specific: identify the target identity
# The exact key names depend on provider contracts; keep it consistent with your provider docs.
Expand All @@ -29,7 +29,7 @@
Type = 'IdLE.Step.EnsureAttributes'
Name = 'Ensure core attributes'
With = @{
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'

Attributes = @{
Expand All @@ -48,7 +48,7 @@
Type = 'IdLE.Step.EnsureEntitlement'
Name = 'Ensure baseline group membership (1)'
With = @{
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'
Entitlement = @{
Kind = 'Group';
Expand All @@ -62,7 +62,7 @@
Type = 'IdLE.Step.EnsureEntitlement'
Name = 'Ensure baseline group membership (2)'
With = @{
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'
Entitlement = @{
Kind = 'Group';
Expand All @@ -84,7 +84,7 @@
With = @{
# Guard by convention: only run when request indicates mover
Condition = '{{Request.Intent.IsMover}}'
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'
Attributes = @{
Department = '{{Request.Intent.NewDepartment}}'
Expand All @@ -101,7 +101,7 @@
Name = 'Mover: adjust group memberships (optional, baseline 1)'
With = @{
Condition = '{{Request.Intent.IsMover}}'
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'

# Optional: baseline + department-specific groups.
Expand All @@ -114,7 +114,7 @@
Name = 'Mover: adjust group memberships (optional, baseline 2)'
With = @{
Condition = '{{Request.Intent.IsMover}}'
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'

# Optional: baseline + department-specific groups.
Expand All @@ -127,7 +127,7 @@
Name = 'Mover: adjust group memberships (optional, department 1)'
With = @{
Condition = '{{Request.Intent.IsMover}}'
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'

# Optional: baseline + department-specific groups.
Expand All @@ -140,7 +140,7 @@
Name = 'Mover: adjust group memberships (optional, department 2)'
With = @{
Condition = '{{Request.Intent.IsMover}}'
AuthSessionName = '{{Request.Auth.Directory}}'
AuthSessionName = 'Directory'
IdentityKey = '{{Request.Intent.SamAccountName}}'

# Optional: baseline + department-specific groups.
Expand Down
Loading