simple-auth

A little web server providing JWT token for auth auser.

NOTE: for now, the server is listening on port 9000. Change it, in the src if needed.

Build

cargo build --release

# run the server
./target/release/simple-auth

Test

unit tests

cargo test

integration tests

  • run the server locally or remotly (the URL must be changed if needed in curling.bash and test_requests.py)
  • run curl tests
cd tests/bash/
./curling.bash && echo "passed"
  • run python requests tests
# create a python venv
cd tests/python
python3 -m venv venv
source venv/bin/activate

# intall the requirements
pip install -r requirements

# launch the tests
python -m unitest
Description
A little web server providing JWT token for auth user.
Readme 140 KiB
v0.3.2 Latest
2023-02-16 15:50:33 +01:00
Languages
Rust 76.1%
Python 18.7%
Shell 5.2%