You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,23 @@
2
2
3
3
Running changelog of releases since `1.0.0`
4
4
5
+
## 2.0.0
6
+
7
+
Starting with the 2.x series, the Okta.PowerShell module supports PowerShell 7+.
8
+
9
+
### New Features
10
+
11
+
- Added support to revoke tokens (#67)
12
+
- Exposed a new exception called `OktaApiException` for API errors (#78)
13
+
- Updated readme with new samples such as "Create custom objects", "configure a web proxy", "List resources that match a filter criteria", "Get logs" and "Error handling".
14
+
15
+
### Bug fixes
16
+
17
+
- Fixed "Parameter existence checking in functions treats $false value as no parameter" (#56)
- Fixed "Get-OktaLogs changes the required date format for "since" and "until" query params" (#55)
20
+
- Improved testability (#74)
21
+
5
22
## 1.0.0
6
23
7
24
- We're excited to release the first generally available version of the Okta.PowerShell module. Please, check out the [README](./README.md) file to learn more about its capabilities.
Copy file name to clipboardExpand all lines: MIGRATING.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,36 @@ This module uses semantic versioning and follows Okta's [library version policy]
4
4
5
5
## Migrating from 1.x to 2.x
6
6
7
-
* We removed the `Invoke-OktaRemoveAccessToken` and replaced it by `Invoke-OktaRevokeAccessToken` which will revoke your access token and remove it from your configuration object.
7
+
* We removed the `Invoke-OktaRemoveAccessToken` command and replaced it by `Invoke-OktaRevokeAccessToken` which revokes your access token and remove it from your configuration object. You can execute the following command to [revoke your token](https://developer.okta.com/docs/guides/revoke-tokens):
8
+
9
+
```powershell
10
+
Invoke-OktaRevokeAccessToken
11
+
```
12
+
13
+
* We added a new exception called `OktaApiException` which is thrown when the Okta API returns 4xx/5xx responses. You can catch an `OktaApiException` and access the Okta API error details. For example, if the API returns a 429 response with the following content: `{"errorCode":"E0000047","errorSummary":"API call exceeded rate limit due to too many requests.","errorLink":"E0000047","errorId":"oae6dB62BdhRFCF_9ltxiklFQ","errorCauses":[]}`, you can access these details from the exception:
14
+
15
+
```powershell
16
+
try{
17
+
$Result = Invoke-OktaListApplications
18
+
}
19
+
catch{
20
+
$_.Exception.StatusCode.Value__ | Should -Be 429;
21
+
$_.Exception.ErrorCode | Should -Be "E0000047"
22
+
$_.Exception.ErrorSummary | Should -Be "API call exceeded rate limit due to too many requests."
23
+
$_.Exception.ErrorLink | Should -Be "E0000047"
24
+
$_.Exception.ErrorId | Should -Be "oae6dB62BdhRFCF_9ltxiklFQ"
25
+
$_.Exception.ErrorCauses | Should -BeNullOrEmpty
26
+
$_.Exception.Headers | Should -Not -Be $null
27
+
}
28
+
```
29
+
30
+
* We updated the OpenAPI spec for the System Log API, and the query parameters `since` and `until` changed their type from `System.Nullable[System.DateTime]` to `String`. Since the System Log API requires `since` and `until` query parameters to be ISO 8601 compliant timestamp, make sure to format dates accordingly:
* We fixed the rate limit functionality which wasn't working as expected. Check out the [PR #78](https://github.com/okta/okta-powershell-cli/pull/78) for more details.
Copy file name to clipboardExpand all lines: README.md
+52-3Lines changed: 52 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,8 @@ This library uses semantic versioning and follows Okta's [library version policy
35
35
36
36
| Version | Status |
37
37
| ------- | ------------------------- |
38
-
| 1.x |:heavy_check_mark: Stable |
38
+
| 2.x |:heavy_check_mark: Stable |
39
+
| 1.x |:warning: Retiring on Aug 21st 2025 |
39
40
40
41
The latest release can always be found on the [releases page][github-releases]. For more information about our SDKs' lifecycle, check out [our docs](https://developer.okta.com/code/library-versions/).
41
42
@@ -52,14 +53,13 @@ If you run into problems using the Okta PowerShell module, you can
52
53
This PowerShell module is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
> Note: For more API samples checkout our [tests](https://github.com/okta/okta-powershell-cli/tree/main/tests/)
358
358
359
+
### List resources that match a filter criteria
360
+
361
+
Certain Okta APIs allow you to list a subset of resources that match a supported filter expression, query, or search criteria. For example, the Groups API enables you to provide filter criteria via query parameters to return a subset of groups. **These query parameters require URL encoding, which is handled internally by the Okta.PowerShell module**. This ensures that your queries are correctly formatted and processed by the Okta API without any additional effort on your part.
362
+
363
+
#### List groups using the `search` parameter
364
+
365
+
* Search groups that are of the type `OKTA_GROUP`:
0 commit comments