antariksh
❔ openid connect oauth2
this is a good read to understand how access token is verified: https://zhiliaxu.github.io/how-do-aspnet-core-services-validate-jwt-signature-signed-by-aad.html
5 replies
❔ openid connect oauth2
Where the oauth token has to be validated against an endpointare you writing an API?
AddOpenIdConnect
is mostly used for Server side authentication and with mainly cookie-scheme. If you are writing an API and want to verify access token received by your API, you can use app.UseJwtBearerAuthentication
everytime a request is made to API, token is verified by this middleware5 replies
❔ Serilog.Settings.Configuration file sink not writing to file?
I quickly created a new project and tried myself. It logs to both console and file. It's worth noting that the path you have given for file is absolute path, so your log file will be generated at the root of your drive. e.g. my code is present at C:\user\source\repos\Worker1, so log file is generated at C:\logs\TestWorker.log
3 replies