https://github.com/marttp/20230514-rust-access-refresh-token
เรียน Rust Axum AuthN
https://github.com/marttp/20230514-rust-access-refresh-token
Last synced: about 1 year ago
JSON representation
เรียน Rust Axum AuthN
- Host: GitHub
- URL: https://github.com/marttp/20230514-rust-access-refresh-token
- Owner: marttp
- Created: 2023-05-14T08:33:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T09:02:46.000Z (about 3 years ago)
- Last Synced: 2025-04-11T00:58:25.889Z (about 1 year ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Axum - Access Token/Refresh Token
Base on
* [Rust and Axum Framework: JWT Access and Refresh Tokens](https://codevoweb.com/rust-and-axum-jwt-access-and-refresh-tokens/)
* [Rust – How to Generate and Verify (JWTs) JSON Web Tokens](https://codevoweb.com/rust-how-to-generate-and-verify-jwts-json-web-tokens/)
## Generate RSA keys
```bash
openssl genrsa -out private_key.pem 4096
openssl rsa -in private_key.pem -pubout -out public_key.pem
```