using .net C# 4.7. I would like know whats the best way to send JWT from my page to an external page?
Please let me know if i need include any libraries .
Any other suggestions or information on where to look is strongly appreaciated.
Thank You.
using .net C# 4.7. I would like know whats the best way to send JWT from my page to an external page?
Please let me know if i need include any libraries .
Any other suggestions or information on where to look is strongly appreaciated.
Thank You.
It really depends on the size of the JWT and what you mean by "external page". If you are sending a bigger payload then a POST request works best because there are larger size limits. If it's small, it can go in the request query parameters via a GET request. Either way, a best practice is to encrypt the JWT so you are not leaking access tokens to the public. Assuming you have control over the external page, you can simply put a reference key in the query parameter so the JWT can be pulled from cache or a database. Keep in mind data at rest, like in a database, is also at risk so a good technique is to encrypt everything in case the database gets lost or stolen.