From 8ef254f1f3da2053cf146ac5b68d131f585eb8f0 Mon Sep 17 00:00:00 2001 From: Sam Mingo Date: Mon, 7 Jun 2021 13:26:24 -0400 Subject: [PATCH] Update OKTA_PASSWORD_CMD.md (#339) Adds plain text password ex. --- docs/OKTA_PASSWORD_CMD.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/OKTA_PASSWORD_CMD.md b/docs/OKTA_PASSWORD_CMD.md index 079f7c8..59d4abe 100644 --- a/docs/OKTA_PASSWORD_CMD.md +++ b/docs/OKTA_PASSWORD_CMD.md @@ -39,10 +39,17 @@ Please contribute additional examples for your favored platform or password mana OKTA_PASSWORD_CMD=@echo off & for /f \"usebackq tokens=*\" %a in (`PowerShell -Command \"(New-Object System.Management.Automation.PSCredential ($env:UserName, (Get-Content $env:USERPROFILE\\.okta\\.password | ConvertTo-SecureString))).GetNetworkCredential().Password\"`) do echo %a ```` +## Example: Plain text +1. Not recommended but if you're stuck/desperate it works +2. Add a `echo "XXXX"` to the `~/.okta/config.properties` file for your password +```bash +OKTA_PASSWORD_CMD=echo "mypassword" +``` + ## Example: Lastpass 1. Install LassPass' CLI tool, lpass 2. Store your password in LassPass, making note of the entries path in your hierarchy 3. Create an entry in `~/.okta/config` ```bash OKTA_PASSWORD_CMD=lpass show --password mysite.com -``` +``` \ No newline at end of file