okta / okta-powershell-cli

Powershell CLI for communicating with the Okta API
Other
17 stars 7 forks source link

Fix for ApiKey configuration fields not working for the API functions (#52) #53

Open TriggerAu opened 1 month ago

TriggerAu commented 1 month ago

Note: This fix is premised on an assumption that the ApiKey parameter in the Configuration object is meant to be an ApiToken from the management interface, based on the details in the management.yaml (more in the bug report).

If the fix should be to add an extra attribute called ApiToken to the Configuration object let me know and Ill adjust the PR

I kept the work in two commits:

Changes

The usage of this method is as below:

$Configuration = Get-OktaConfiguration
$Configuration.BaseUrl = 'https://myorg.okta.com'
$Configuration.ApiKey = 'myApiToken'
Invoke-OktaListUsers

the ApiKeyPrefix defaults to the SSWS value from the documentation

Issue #52

Other Note: Im not sure how the team maintain/ask contributors to adjust the version/build log, but if there is anything I can do to help in that regard just lemme know