Skip to content

Commit

Permalink
update pwpush version
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 26, 2025
1 parent e82b27d commit 00617ff
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 189 deletions.
17 changes: 8 additions & 9 deletions Modules/CippExtensions/Public/PwPush/Set-PwPushConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ function Set-PwPushConfig {
}
if (![string]::IsNullOrEmpty($Configuration.EmailAddress) -or $Configuration.UseBearerAuth -eq $true) {
$ApiKey = Get-ExtensionAPIKey -Extension 'PWPush'

if (![string]::IsNullOrEmpty($ApiKey)) {
$InitParams.APIKey = $ApiKey
}
if (![string]::IsNullOrEmpty($Configuration.EmailAddress)) {
$InitParams.EmailAddress = $Configuration.EmailAddress
}
if ($Configuration.UseBearerAuth -eq $true) {
$InitParams.AccountType = 'Pro'
$InitParams.Bearer = $ApiKey
} elseif (![string]::IsNullOrEmpty($ApiKey)) {
if (![string]::IsNullOrEmpty($Configuration.EmailAddress)) {
$InitParams.EmailAddress = $Configuration.EmailAddress
}
$InitParams.APIKey = $ApiKey
}
}

$Module = Get-Module PassPushPosh -ListAvailable
Write-Host $Module.Version
Write-Information "PWPush Version: $($Module.Version)"
if ($PSCmdlet.ShouldProcess('Initialize-PassPushPosh')) {
Write-Information ($InitParams | ConvertTo-Json)
Initialize-PassPushPosh @InitParams
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Adam Burley
#
# Generated on: 2/8/2025
# Generated on: 2/21/2025
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'PassPushPosh.psm1'

# Version number of this module.
ModuleVersion = '1.2.1'
ModuleVersion = '1.3.1'

# Supported PSEditions
CompatiblePSEditions = 'Core'
Expand Down
Loading

0 comments on commit 00617ff

Please sign in to comment.