alfred-okta
v0.5.1
Published
Alfred workflow for opening apps via Okta
Downloads
34
Maintainers
Readme
alfred-okta
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
- Get your Okta auth token
- Login to your Okta web instance
- Open dev tools, then console tab
- Run
JSON.parse(localStorage.getItem('okta-token-storage')).accessToken.accessToken
- Copy the output
- 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