This is a simple command-line application written in Rust for user authentication using HTTP requests and an INI configuration file.
- User authentication via HTTP POST request to a specified URL.
- Configurable username and password storage in an INI file.
- Basic user input using the
dialoguercrate.
- minreq: A minimalistic Rust HTTP client.
- ini: A Rust library to read and write INI configuration files.
- dialoguer: A Rust library for interactive user input on the command line.
Make sure you have Rust installed on your system.
- Clone this repository:
git clone https://github.com/kaustavsahoo/autoauth-rs.git
- Change into the project directory:
cd autoauth-rs
- Build the project:
cargo build --release
Run the application from the command line:
cargo run --release
The application will prompt you for your username and password. If you've already provided your credentials before, they will be read from the configuration file (config.ini) and used for authentication. If not, the application will ask you to input your username and password and store them in the configuration file for future use.
The application stores your username and password in an INI file named config.ini in the same directory as the executable. If you want to manually edit or reset your credentials, you can modify this file directly.
[user]
username = "your_username"
password = "your_password"
Note: It's essential to keep your configuration file secure, as it contains sensitive information.
Contributions are welcome! If you find a bug or want to add a new feature, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.