Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I am not able to make clear understanding Issuer and audience role in JWT token authentication please help to make better understanding.

currently i am passing the Issuer and Audience both same because as localhost i am generating the token in same API. and working fine.

but when i am hosting the site on IIS on different port but Issuer and Audience are same Localhost then in that case it is also working.

What I have tried:

Keep the token generation logic in same api.
like
"iss": "https://localhost:4000/",
  "aud": "https://localhost:4000/"

but my web api running on
localhost:44381 but token is generating successfully and also validating.
Posted
Updated 14-Sep-22 1:46am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900