From 109ae1f771ec5e8a5a9510c3b09fad579dab5ed7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 16 Apr 2021 13:56:45 +0300 Subject: Improve auth documentation --- site/public/register-docs/index.html | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'site/public/register-docs/index.html') diff --git a/site/public/register-docs/index.html b/site/public/register-docs/index.html index fdc5237..810f4ec 100644 --- a/site/public/register-docs/index.html +++ b/site/public/register-docs/index.html @@ -84,38 +84,42 @@
Register Documentation
-

POST request to /register endpoint

+

POST request to /register endpoint

Lets a user to authenticate themselves to the system. Only people who are enrolled to the class can open Gradecoin accounts. This is enforced with your Student ID and a one time password you will receive.

Authentication Process

+
+

The bytes you are sending over the network are all Base64 Encoded

+
 {
-    "student_id": "e12345",
+    "student_id": "e123456",
     "passwd": "15 char secret",
     "public_key": "---BEGIN PUBLIC KEY..."
 }
 
 {
-    "c": "auth_ciphertext",
-    "iv": "hexadecimal",
+    "c": "C_AR",
+    "iv": "iv",
     "key": "key_ciphertext"
 }
 
-

If your authentication process was valid, you will be given access and your public key fingerprint that is your address.

+

If your authentication process was valid, you will be given access and your public key fingerprint that is your address. +You can now sign JWTs to send authorized transaction requests.

-- cgit v1.2.3-70-g09d2