auth_token-0.2.0 has been yanked.
auth-token
Summary
A small CLI application and rust library, that allows you to get an auth token for use in development.
Screenshot
Binary Releases
See Github Releases
Example
# Get an OKTA Access Token
)
Usage
# Commands
# Flags
Setting up on Mac
Download the release from Github Releases and copy to your home directory.
Run the file once by using right click / option click -> run, to approve the binary through gatekeeper.
Add a command to the end of your ~/.zshrc file:
Open a new terminal, and run token!
Limitations
- Binary Releases are not notarized yet, so we can't create an install script.
- Only basic auth (user/password) is implemented.
- Only the following modes are impemented:
code_challenge_method: S256response_type: coderesponse_mode: form_postprompt: nonegrant_type: authorization_code
- Error codes are not read from some endpoints, instead a generic error is returned.
Build Source
rustup must already be installed - https://www.rust-lang.org/tools/install
# Build for your own platform
# Install cross-compilation chains if not already done.
# mingw-w64 is also required to build a windows target.
# Build for other platforms
Codesign and Notarize
We are using gon to assist in codesign and notarization. Run the following command from the project root directory.
BUNDLE_ID=your.bundle.id AC_USERNAME=apple.connect.username AC_PASSWORD=app.specific.password