I am conducting tests to understand and implement a user authorization system through the use of Json Web Token .
Looking for information about the configuration of a token a couple of doubts arise about the use of two Claim Payload, the Sub and the Aud.
{
"iss": "www.miweb.com", // emisor
"iat": 1455550200, // emitido en
"exp": 1455559810, // expira
"nbf": 1455550260, // no usar antes de
"jti": "31d6cfe0d16ae931b73c59d7e0c089c0", // id único
"sub": "", // ¿asunto?
"aud": "", // ¿?
"data": {/* datos anexos */}
}
From what I have observed, these two claims are little used. My question then is:
In which scenario can you use it and with what purpose?
Thanks in advance, Greetings
Pd .: The same question is in StackOverflow: link