Whistleblowing flow
[1] First Request Client -> Server:
First of all is necessary to send a request with POST method to server
(i.e. http://www.cm-innovationlab.it:5002).
{
"username": "marco.campominosi",
"password": "enjoy"
}
The encrypted JSON using AES key is:
Try this!
[2] First Answer Server -> Client:
Server now sends back a JWT, after verifying credentials.
[3] Second Request Client -> Server:
Now is possible to send a request with JWT in authorization header.
For example we send this JSON request:
{
"message": "This is a test!",
}
The encrypted JSON using AES key is:
Try this!
[4] Second Answer Server -> Client:
Server now sends back a responce, after verifying Token.
.:. Copyright ©2020- CM-InnovationLab.it .:. All Rights Reserved .:.