UnipharSecurityAuth

1.1.1

Authentication and utility functions for Uniphar security automation

Minimum PowerShell version

7.4

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name UnipharSecurityAuth -RequiredVersion 1.1.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name UnipharSecurityAuth -Version 1.1.1

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Uniphar Security Team. All rights reserved.

Package Details

Author(s)

  • Uniphar Security Team

Tags

Azure Automation Security Authentication SendGrid KeyVault ManagedIdentity Graph ExchangeOnline

Functions

New-RandomPassword Protect-LdapFilterValue Invoke-WithRetry Connect-AzureContext Connect-GraphContext Connect-ExchangeOnlineContext Get-KeyVaultSecretPlain Get-ServicePrincipalCredentialFromKeyVault Get-OnPremAdCredential Test-OnPremAD Send-EmailViaSendGrid ConvertTo-SendGridAttachment ConvertTo-EmailRecipientArray ConvertTo-E164PhoneNumber Get-CleanManagerName Get-UserAttributeDiff Get-OrphanedEmployeeId Confirm-CanaryConnectivity Get-CanaryIncident ConvertFrom-CanaryIncident Set-CanaryIncidentAcknowledged ConvertTo-CanaryCidr Test-IpInCidrRange Get-TrustedNamedLocationRange Test-IpAllowListed Add-IpToRestrictedNamedLocation Get-SignInUserByIp Revoke-UserAccess

Dependencies

This module has no dependencies.

Release Notes

1.1.1: Documentation — ConvertTo-E164PhoneNumber help now states that a space between country code and national number is required, with an example of the rejected unspaced form. 1.1.0: Security hardening. New-RandomPassword now uses a CSPRNG (RandomNumberGenerator) with a Fisher-Yates shuffle. Get-SignInUserByIp validates/normalises the IP and cannot be used for OData injection. Invoke-WithRetry classifies by HTTP status code and honours the Retry-After header with jitter. Add-IpToRestrictedNamedLocation enforces a per-location range ceiling and fails closed when isTrusted is absent. Canary helpers send the auth token via header instead of the query string. ConvertTo-E164PhoneNumber only accepts space-separated country codes. Send-EmailViaSendGrid surfaces the SendGrid error detail on failure.

FileList

Version History

Version Downloads Last updated
1.1.2 7 8/31/2026
1.1.1 (current version) 10 8/31/2026
1.0.2 32 7/28/2026
1.0.1 37 4/27/2026
1.0.0 324 1/16/2026