Skip to content

Commit

Permalink
Update manifest and docs to 3.1.7 ***NO_CI***
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Sep 17, 2021
1 parent b532df0 commit c7d101d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 19 deletions.
4 changes: 2 additions & 2 deletions VenafiPS/VenafiPS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Greg Brownstein
#
# Generated on: 9/8/2021
# Generated on: 9/17/2021
#

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

# Version number of this module.
ModuleVersion = '3.1.6'
ModuleVersion = '3.1.7'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.1.7
- Fix/finalize certificate-based oauth token support, [#29](https://github.com/gdbarron/VenafiPS/issues/29)

## 3.1.6
- Thanks to @harrisonmeister for this contribution!
- Add support to `Export-VenafiCertificate` for `-IncludeChain` and `-IncludePrivateKey` when using JKS format, [#24](https://github.com/gdbarron/VenafiPS/issues/24) and [#26](https://github.com/gdbarron/VenafiPS/issues/26)
Expand Down
26 changes: 21 additions & 5 deletions docs/functions/Invoke-VenafiRestMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Invoke-VenafiRestMethod -VenafiSession <VenafiSession> [-Method <String>] [-UriR

### URL
```
Invoke-VenafiRestMethod -ServerUrl <String> [-UseDefaultCredentials] [-Method <String>] [-UriRoot <String>]
-UriLeaf <String> [-Header <Hashtable>] [-Body <Hashtable>] [-FullResponse] [<CommonParameters>]
Invoke-VenafiRestMethod -ServerUrl <String> [-UseDefaultCredential] [-Certificate <X509Certificate>]
[-Method <String>] [-UriRoot <String>] -UriLeaf <String> [-Header <Hashtable>] [-Body <Hashtable>]
[-FullResponse] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -61,13 +62,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -UseDefaultCredentials
{{ Fill UseDefaultCredentials Description }}
### -UseDefaultCredential
{{ Fill UseDefaultCredential Description }}
```yaml
Type: SwitchParameter
Parameter Sets: URL
Aliases:
Aliases: UseDefaultCredentials

Required: False
Position: Named
Expand All @@ -76,6 +77,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Certificate
{{ Fill Certificate Description }}
```yaml
Type: X509Certificate
Parameter Sets: URL
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Method
API method, either get, post, patch, put or delete.
Expand Down
3 changes: 2 additions & 1 deletion docs/functions/New-TppToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ Accept wildcard characters: False
```
### -Certificate
Certificate used to request API token
Certificate used to request API token.
Certificate authentication must be configured for remote web sdk clients, https://docs.venafi.com/Docs/21.1SDK/TopNav/Content/CA/t-CA-ConfiguringInTPPandIIS-tpp.php.
```yaml
Type: X509Certificate
Expand Down
29 changes: 18 additions & 11 deletions docs/functions/New-VenafiSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ New-VenafiSession -Server <String> -AccessToken <PSCredential> [-PassThru] [-Wha

### TokenCertificate
```
New-VenafiSession -Server <String> -Certificate <X509Certificate> [-PassThru] [-WhatIf] [-Confirm]
[<CommonParameters>]
New-VenafiSession -Server <String> -ClientId <String> -Scope <Hashtable> -Certificate <X509Certificate>
[-AuthServer <String>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### TokenIntegrated
Expand Down Expand Up @@ -75,26 +75,33 @@ Create token-based session using Windows Integrated authentication with a certai

### EXAMPLE 4
```
New-VenafiSession -Server venafitpp.mycompany.com -Certificate $myCert -ClientId MyApp -Scope @{'certificate'='manage'}
```

Create token-based session using a client certificate

### EXAMPLE 5
```
New-VenafiSession -Server venafitpp.mycompany.com -AuthServer tppauth.mycompany.com -ClientId MyApp -Credential $cred
```

Create token-based session using oauth authentication where the vedauth and vedsdk are hosted on different servers

### EXAMPLE 5
### EXAMPLE 6
```
$sess = New-VenafiSession -Server venafitpp.mycompany.com -Credential $cred -PassThru
```

Create session and return the session object instead of setting to script scope variable

### EXAMPLE 6
### EXAMPLE 7
```
New-VenafiSession -Server venafitpp.mycompany.com -AccessToken $cred
```

Create session using an access token obtained outside this module

### EXAMPLE 7
### EXAMPLE 8
```
New-VenafiSession -VaasKey $cred
```
Expand Down Expand Up @@ -141,7 +148,7 @@ Applcation Id configured in Venafi for token-based authentication
```yaml
Type: String
Parameter Sets: TokenIntegrated, TokenOAuth
Parameter Sets: TokenCertificate, TokenIntegrated, TokenOAuth
Aliases:

Required: True
Expand All @@ -160,7 +167,7 @@ For a scope to privilege mapping, see https://docs.venafi.com/Docs/20.4SDK/TopNa
```yaml
Type: Hashtable
Parameter Sets: TokenIntegrated, TokenOAuth
Parameter Sets: TokenCertificate, TokenIntegrated, TokenOAuth
Aliases:

Required: True
Expand Down Expand Up @@ -223,7 +230,7 @@ If just the server name is provided, https:// will be appended.
```yaml
Type: String
Parameter Sets: TokenIntegrated, TokenOAuth
Parameter Sets: TokenCertificate, TokenIntegrated, TokenOAuth
Aliases:

Required: False
Expand Down Expand Up @@ -316,9 +323,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
[https://docs.venafi.com/Docs/19.4/TopNav/Content/SDK/WebSDK/API_Reference/r-SDK-GET-Authorize-Integrated.php?tocpath=Topics%20by%20Guide%7CDeveloper%27s%20Guide%7CWeb%20SDK%20reference%7CAuthentication%20programming%20interfaces%7C_____3](https://docs.venafi.com/Docs/19.4/TopNav/Content/SDK/WebSDK/API_Reference/r-SDK-GET-Authorize-Integrated.php?tocpath=Topics%20by%20Guide%7CDeveloper%27s%20Guide%7CWeb%20SDK%20reference%7CAuthentication%20programming%20interfaces%7C_____3)
[https://docs.venafi.com/Docs/20.1SDK/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-Authorize-Integrated.php?tocpath=Auth%20SDK%20reference%20for%20token%20management%7C_____10](https://docs.venafi.com/Docs/20.1SDK/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-Authorize-Integrated.php?tocpath=Auth%20SDK%20reference%20for%20token%20management%7C_____10)
[https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-Authorize-Integrated.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____10](https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-Authorize-Integrated.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____10)
[https://docs.venafi.com/Docs/20.1SDK/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeOAuth.php?tocpath=Auth%20SDK%20reference%20for%20token%20management%7C_____11](https://docs.venafi.com/Docs/20.1SDK/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeOAuth.php?tocpath=Auth%20SDK%20reference%20for%20token%20management%7C_____11)
[https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeOAuth.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____11](https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeOAuth.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____11)
[https://docs.venafi.com/Docs/20.1/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeCertificate.php?tocpath=Topics%20by%20Guide%7CDeveloper%27s%20Guide%7CAuth%20SDK%20reference%20for%20token%20management%7C_____9](https://docs.venafi.com/Docs/20.1/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeCertificate.php?tocpath=Topics%20by%20Guide%7CDeveloper%27s%20Guide%7CAuth%20SDK%20reference%20for%20token%20management%7C_____9)
[https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeCertificate.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____9](https://docs.venafi.com/Docs/current/TopNav/Content/SDK/AuthSDK/r-SDKa-POST-AuthorizeCertificate.php?tocpath=Platform%20SDK%7CAuth%20REST%20for%20token%20management%7C_____9)

0 comments on commit c7d101d

Please sign in to comment.