diff options
author | Yigit Sever | 2021-04-09 21:06:37 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-09 21:06:37 +0300 |
commit | b4d90a4d8d23d1ced460c24c3f3b4d8114460347 (patch) | |
tree | 7582d94b769a501ec0c0cbb45c0f9bb4d2229590 | |
parent | 8e7d1b91ca77fcf75b3de3ca5b7c10c114d1950e (diff) | |
download | gradecoin-b4d90a4d8d23d1ced460c24c3f3b4d8114460347.tar.gz gradecoin-b4d90a4d8d23d1ced460c24c3f3b4d8114460347.tar.bz2 gradecoin-b4d90a4d8d23d1ced460c24c3f3b4d8114460347.zip |
Add auth scheme JWT
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | TODO.md | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -17,6 +17,8 @@ $ curl --location --request POST 'localhost:8080/transaction' --header 'Content- | |||
17 | 17 | ||
18 | ## authentication | 18 | ## authentication |
19 | Students generate their own `keypairs` and authenticate with their METU Student IDs. | 19 | Students generate their own `keypairs` and authenticate with their METU Student IDs. |
20 | Some JWT scheme, coming up. | ||
21 | |||
20 | Authenticated students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves. | 22 | Authenticated students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves. |
21 | 23 | ||
22 | ## transactions | 24 | ## transactions |
@@ -7,8 +7,12 @@ | |||
7 | - [ ] check the nonce for incoming blocks | 7 | - [ ] check the nonce for incoming blocks |
8 | 8 | ||
9 | ## Authentication | 9 | ## Authentication |
10 | - [ ] pick a user authentication scheme | 10 | - [X] pick a user authentication scheme = [JWT](https://tools.ietf.org/html/rfc7519) Seems perfect |
11 | - [ ] implement it | 11 | - [ ] implement JWT |
12 | - https://blog.logrocket.com/jwt-authentication-in-rust/ | ||
13 | - https://crates.io/crates/jsonwebtoken | ||
14 | - https://jwt.io/introduction/ | ||
15 | - https://jwt.io/#debugger-io | ||
12 | - [ ] users should be able to _sign_ their transactions | 16 | - [ ] users should be able to _sign_ their transactions |
13 | 17 | ||
14 | ## Done & Brag | 18 | ## Done & Brag |