I am developing an web api with jwt based authorization. The login endpoint returns the jwt token when credentials are correct.
I have configured the following values:
ValidateIssuer = false,
ValidateAudience = false,
ValidateIssuerSigningKey = true
I want to understand how they work.
ValidateIssuer: Is this property value automatically set or needs to be programmatically set? How does the validation work? How does the code know what is the current server to be able to validate?
ValidateAudience: By audience I believe it means the users of the application. Since my users can be from client (browser, mobile app) then how does this work?