From 82f8e6877a57316860a9468f523decaae9f7529b Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 05:30:53 +0300 Subject: Start frontend --- site/public/jwt/index.html | 62 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 57 insertions(+), 5 deletions(-) (limited to 'site/public/jwt') diff --git a/site/public/jwt/index.html b/site/public/jwt/index.html index 899aada..c32fb31 100644 --- a/site/public/jwt/index.html +++ b/site/public/jwt/index.html @@ -66,14 +66,66 @@ + +
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod -tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At -vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd -ubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+++JSON Web Tokens are representations of claims, or authorization proofs that fit into the
+Header
of HTTP requests.
JWTs are used as the MAC of operations that require authorization:
+They are send alongside the JSON request body in the Header
;
+Authorization: Bearer aaaaaa.bbbbbb.ccccc
+
+Gradecoin uses 3 fields for the JWTs;
+
+{
+"tha": "Hash of the payload, check invididual references",
+"iat": "Issued At, Unix Time",
+"exp": "Expiration Time, epoch"
+}
+
+tha
is explained in blocks and transactions documentations.iat
when the JWT was created in Unix Time formatexp
when the JWT will expire & be rejected in Unix TimeWe are using RS256, RSASSA-PKCS1-v1_5 using SHA-256
. The JWTs you encode with your private RSA key will be decoded using the public key you have authenticated with. You can see how the process works here.