-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ability to authneticate to pwpush and review active pushes * add linting on errors * catch error * more info
- Loading branch information
1 parent
3e4346b
commit 8531a71
Showing
9 changed files
with
93 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Get-PwpushActive | ||
{ | ||
<# | ||
.SYNOPSIS | ||
Returns the list of password pushes that you previously pushed which are still active. | ||
#> | ||
[cmdletbinding()] | ||
param ( | ||
) | ||
|
||
$endpoint = "p/active.json" | ||
|
||
$params = @{ | ||
Endpoint = $endpoint | ||
Method = "Get" | ||
} | ||
Invoke-PwpushRequest @params | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Get-PwpushExpired | ||
{ | ||
<# | ||
.SYNOPSIS | ||
Returns the list of password pushes that you previously pushed which have expired. | ||
#> | ||
[cmdletbinding()] | ||
param ( | ||
) | ||
|
||
$endpoint = "p/expired.json" | ||
|
||
$params = @{ | ||
Endpoint = $endpoint | ||
Method = "Get" | ||
} | ||
Invoke-PwpushRequest @params | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Invoke-ScriptAnalyzer -Path "$PSScriptRoot/../src" -Recurse -Severity @("Error") |