Skip to content

A minimal, configurable Rust CLI for user authentication using HTTP requests

License

Notifications You must be signed in to change notification settings

kaustavsahoo/autoauth-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust AutoAuth CLI

Rust License

This is a simple command-line application written in Rust for user authentication using HTTP requests and an INI configuration file.

Features

  • User authentication via HTTP POST request to a specified URL.
  • Configurable username and password storage in an INI file.
  • Basic user input using the dialoguer crate.

Dependencies

  • 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.

Installation

Make sure you have Rust installed on your system.

  1. Clone this repository:
git clone https://github.com/kaustavsahoo/autoauth-rs.git
  1. Change into the project directory:
cd autoauth-rs
  1. Build the project:
cargo build --release

Usage

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.

Configuration

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.

Configuration File Format

[user]
username = "your_username"
password = "your_password"

Note: It's essential to keep your configuration file secure, as it contains sensitive information.

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A minimal, configurable Rust CLI for user authentication using HTTP requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages