Click here to Skip to main content
15,922,407 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
"iss": "https://localhost:4000/",
  "aud": "https://localhost:4000/"

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

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