alfred-okta

0.5.1 • Public • Published

alfred-okta

Alfred workflow for opening your Okta apps

Install

npm install --global alfred-okta

Prerequisites

Getting Started

In Alfred, type okta:config, then Space followed by "Set API host".

This will prompt you for the URL of your Okta instance and then save it for future use.

Next, you need to authenticate with Okta. This can either be done automatically or manually:

Automatically

[!NOTE] This command will automatically download a development-only browser because the script needs low-level access that your current browser cannot provide. If you'd prefer not to do this, skip to the "Manual" section.

In Alfred, type okta:config, then Space followed by "Authenticate".

A new Terminal window will open and download the browser. Once complete, the browser will open to your Okta instance and wait for your to log in.

Once authenticated, the browser will close and Alfred will save your auth token for future reference.

Manually

  1. Get your Okta auth token
    1. Login to your Okta web instance
    2. Open dev tools, then console tab
    3. Run JSON.parse(localStorage.getItem('okta-token-storage')).accessToken.accessToken
    4. Copy the output
  2. In Alfred, type okta:config, then Space followed by "Set auth token" and paste the token you copied in the previous step.

Usage

In Alfred, type okta, then Space followed by your query to fuzzy search your apps.
Select an item and press Enter to open it in your browser.

If you'd prefer to cache your list of apps, then in Alfred, type okta:config, then Space followed by "Update app list".

This will populate your config file with your list of available apps.

To update the cache run the "Update app list" config command again.

To clear the cache, in Alfred, type okta:config, then Space followed by "Open config file". This will open the config file with your default editor. Now delete the line that starts with appList and save.

Related

  • alfy - Create Alfred workflows with ease

Package Sidebar

Install

npm i alfred-okta

Weekly Downloads

0

Version

0.5.1

License

GPL-3.0-or-later

Unpacked Size

83.1 kB

Total Files

21

Last publish

Collaborators

  • jcyamo