Add JWT authentication.

Add: JWT authentication in Web API. Related configuration and services are added.
This commit is contained in:
2025-07-10 20:08:48 +08:00
parent 7cce413f79
commit 724b1d4dae
8 changed files with 132 additions and 4 deletions

View File

@ -14,6 +14,12 @@
"Database": {
"Type": "Sqlite",
"Host": "optixserve.db"
},
"Jwt": {
"Secret": "YOUR_SECRET_KEY_HERE_DO_NOT_SHARE_THIS_AND_MAKE_IT_LONG_ENOUGH",
"Issuer": "OptixServe",
"Audience": "OptixServeUsers",
"TokenExpirationMinutes": 60
}
}
}
}