Skip to content

piaverous/pokta

Repository files navigation

Pokta - Okta interactions utilities

License Go Report Card ci-status

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.

Installation

Follow any of the instructions below.

Mac OS

brew install piaverous/tap/pokta

This formula is maintained by me. It is updated automatically after every release.

General Linux

curl -L https://raw.githubusercontent.com/piaverous/pokta/main/install.sh | bash

This script installs the latest release by default.

Getting Started

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 supported

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