Interacting with Okta as a developer is not always the most straightforward.
pokta
aims to bring simple features to your CLI, to make your life easier.
Follow any of the instructions below.
brew install piaverous/tap/pokta
This formula is maintained by me. It is updated automatically after every release.
curl -L https://raw.githubusercontent.com/piaverous/pokta/main/install.sh | bash
This script installs the latest release by default.
Setup a config file in ~/.pokta/config.yml
like so :
okta:
api_key: <your_client_api_key>
aud: https://<your_okta_domain_base_url>/token
client_id: <your_client_id>
kid: <your_key_id>
private_key: <your_base64_encoded_p12_key>
scope: <scopes_you_wish_to_request_in_your_token>
Then simply run :
pokta auth pkjwt
Currently, this CLI only supports Private Key JWT login.
Warning
My understanding of the topic is not very exhaustive, and this CLI is essentially used as a debuging tool. Therefore :
- Some things may be inexact and not work properly
- No proper error management has been implemented yet