Skip to content

Commit

Permalink
Update OKTA_PASSWORD_CMD.md (oktadev#339)
Browse files Browse the repository at this point in the history
Adds plain text password ex.
  • Loading branch information
slmingol committed Jun 7, 2021
1 parent 5404e03 commit 8ef254f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/OKTA_PASSWORD_CMD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
```

0 comments on commit 8ef254f

Please sign in to comment.