Skip to content

Commit adc4e93

Browse files
authored
docs: fix okta-tile refs (#159)
* style: fix linting of docs/README.md * docs: fix okta-tile param references In some places `docs/README.md` incorrectly referred to the `okta-tile` parameter as `okta-aws-tile`. Resolves #157
1 parent aee7f01 commit adc4e93

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

docs/README.md

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
1+
# Tokendito Documentation
2+
13
## Table of Contents
24

3-
* [Command line Usage](#command-line-usage)
4-
* [Default usage](#default-usage)
5-
* [Multi-tile-Guide](#multi-tile-guide)
6-
* [Single-command usage](#single-command-usage)
7-
* [Additional command line reference](#additional-command-line-reference)
8-
* [Environment variables and user configuration](#environment-variables-and-user-configuration)
9-
* [Precedence](#precedence)
10-
* [Environment variables and user configuration table](#environment-variables-and-user-configuration-table)
11-
* [Configuration file location](#configuration-file-location)
12-
* [AWS Roles Discovery](#aws-roles-discovery)
13-
* [Supported MFAs](#supported-mfas)
14-
* [Upgrading](#to-upgrade)
15-
* [Installing from GitHub](#installing-from-github)
16-
* [Troubleshooting](#troubleshooting)
17-
* [Design and Limitations](#design-and-limitations)
18-
19-
# Command line Usage
20-
21-
## Default usage
5+
- [Command line Usage](#command-line-usage)
6+
- [Default usage](#default-usage)
7+
- [Multi-tile-Guide](#multi-tile-guide)
8+
- [Single-command usage](#single-command-usage)
9+
- [Additional command line reference](#additional-command-line-reference)
10+
- [Environment variables and user configuration](#environment-variables-and-user-configuration)
11+
- [Precedence](#precedence)
12+
- [Environment variables and user configuration table](#environment-variables-and-user-configuration-table)
13+
- [Configuration file location](#configuration-file-location)
14+
- [AWS Roles Discovery](#aws-roles-discovery)
15+
- [Supported MFA methods](#supported-mfa-methods)
16+
- [Upgrading](#upgrading)
17+
- [Installing from GitHub](#installing-from-github)
18+
- [Troubleshooting](#troubleshooting)
19+
- [Design and Limitations](#design-and-limitations)
20+
21+
## Command line Usage
22+
23+
### Default usage
2224

2325
Configure your profile by running tokendito with the `--configure` flag, or by populating your `tokendito.ini` file as [here](tokendito.ini.md).
2426
Using --configure will only set the okta_username, okta_todo
2527

2628
Then execute: `tokendito` in your command line.
2729

28-
## Multi-tile Guide
30+
### Multi-tile Guide
2931

3032
If you have multiple AWS-type Okta tiles assigned to you, please update
3133
your local [tokendito.ini](tokendito.ini.md) file with the links to
@@ -37,9 +39,9 @@ name, by passing in the `--profile` parameter.
3739
Without specifying a specific profile, tokendito will look for a default
3840
profile within that file.
3941

40-
## Single-command usage
42+
### Single-command usage
4143

42-
tokendito accepts all of the necessary parameters to be able to generate
44+
Tokendito accepts all of the necessary parameters to be able to generate
4345
your STS tokens with a single command. There are a couple of ways to do
4446
this!
4547

@@ -49,14 +51,14 @@ You can just pass in your information at runtime:
4951
tokendito --username [email protected] \
5052
--role-arn arn:aws:iam::123456789000:role/dowjones-engineer \
5153
--okta-mfa push \
52-
--okta-aws-tile https://acme.oktapreview.com/home/amazon_aws/b07384d113edec49eaa6/123 \
54+
--okta-tile https://acme.oktapreview.com/home/amazon_aws/b07384d113edec49eaa6/123 \
5355
```
5456

5557
Or you can put your parameters into a single [profile](tokendito.ini.md) and reference that profile.
5658

57-
```
59+
``` ini
5860
[engineer]
59-
okta_aws_tile = https://acme.oktapreview.com/home/amazon_aws/b07384d113edec49eaa6/123
61+
okta_tile = https://acme.oktapreview.com/home/amazon_aws/b07384d113edec49eaa6/123
6062
okta_username = [email protected]
6163
okta_mfa = push
6264
aws_role_arn = arn:aws:iam::123456789000:role/engineer
@@ -68,7 +70,7 @@ And execute:
6870
tokendito --profile engineer
6971
```
7072

71-
## Additional command line reference
73+
### Additional command line reference
7274

7375
``` txt
7476
usage: tokendito [-h] [--version] [--configure] [--username OKTA_USERNAME] [--password OKTA_PASSWORD] [--profile USER_CONFIG_PROFILE] [--config-file USER_CONFIG_FILE]
@@ -122,20 +124,19 @@ options:
122124
Regarding the storage of the Okta password, we are fans of automation but do not recommend passing in the password to tokendito via plaintext or storing
123125
it in your environment locally.
124126

127+
## Environment variables and user configuration
125128

126-
# Environment variables and user configuration
129+
Tokendito supports the use of environment variables and user configuration equivalents to specify the default values for most options.
127130

128-
tokendito supports the use of environment variables and user configuration equivalents to specify the default values for most options.
129-
130-
## Precedence
131+
### Precedence
131132

132133
Credentials and configuration settings take precedence in the following order:
133134

134-
1. Command line options -- Overrides settings in any other location. You can specify `--username`, `--role-arn`, `--okta-aws-tile`, and `--okta-mfa` as parameters on the command line.
135+
1. Command line options -- Overrides settings in any other location. You can specify `--username`, `--role-arn`, `--okta-tile`, and `--okta-mfa` as parameters on the command line.
135136
1. Environment variables -- You can store values in your system\'s environment variables. It overrides the configuration file.
136137
1. User configuration file -- The user configuration file is updated when you run the command tokendito \--configure. Tokendito uses [platformdirs](https://github.com/platformdirs/platformdirs) to store user configuration in the [tokendito.ini](tokendito.ini.md) file. This file can contain the credential details for the default profile and any named profiles.
137138

138-
## Environment variables and user configuration table
139+
### Environment variables and user configuration table
139140

140141
The following table lists the environment variable and user configuration entry equivalent for the given command line option.
141142

@@ -160,36 +161,37 @@ The following table lists the environment variable and user configuration entry
160161
| `--use-device-token` | `TOKENDITO_USER_USE_DEVICE_TOKEN` | `user_use_device_token` |
161162
| `--quiet` | `TOKENDITO_USER_QUIET` | `quiet` |
162163

163-
# Configuration file location
164+
## Configuration file location
164165

165166
With Tokendito version 2.0 we changed the location of the configuration file from `$HOME/.aws/okta_auth` to be platform-independent, and following the standard location for configuration files in each supported platform. `tokendito --help` will show the exact location on your system.
166167

167-
* On Linux: `/home/<username>/.config/tokendito/tokendito.ini`
168-
* On MacOS: `/Users/<username>/Library/Preferences/tokendito/tokendito.ini`
169-
* On Windows: `%USERPROFILE%\AppData\Local\tokendito\tokendito.ini`
168+
- On Linux: `/home/<username>/.config/tokendito/tokendito.ini`
169+
- On MacOS: `/Users/<username>/Library/Preferences/tokendito/tokendito.ini`
170+
- On Windows: `%USERPROFILE%\AppData\Local\tokendito\tokendito.ini`
171+
172+
## AWS Roles Discovery
170173

171-
# AWS Roles Discovery
172-
tokendito will discover all your available AWS Roles configured in Okta, returning a list for you to select from, simply by calling:
174+
Tokendito will discover all your available AWS Roles configured in Okta, returning a list for you to select from, simply by calling:
173175
`tokendito --okta-org ${YOUR ORG OKTA URL}`. For instance, `tokendito --okta-org https://acme.oktapreview.com`
174176

175-
# Supported MFA methods
177+
## Supported MFA methods
176178

177179
- Native Okta factors (Push, phone call, SMS, TOTP) except Biometrics (FIDO WebAuthn) and Number Challenge
178180
- Google Authenticator TOTP
179181
- Duo Push, phone call, SMS, and TOTP
180182

181-
# Upgrading
183+
## Upgrading
182184

183185
`pip install --upgrade tokendito`
184186

185-
# Installing from GitHub
187+
## Installing from GitHub
186188

187189
`pip install git+ssh://[email protected]/dowjones/tokendito.git@<version>`
188190

189191
For instance,
190192
`pip install git+ssh://[email protected]/dowjones/[email protected]`
191193

192-
# Troubleshooting
194+
## Troubleshooting
193195

194196
Configuration issues with tokendito can usually be addressed by
195197
validating your environment\'s AWS configuration profile(s) located at:
@@ -200,7 +202,7 @@ validating your environment\'s AWS configuration profile(s) located at:
200202

201203
[tokendito.ini](tokendito.ini.md)
202204

203-
# Design and Limitations
205+
## Design and Limitations
204206

205207
- This tool does not cache and reuse Okta session IDs.
206208

0 commit comments

Comments
 (0)