Mihir Dilip
Mihir Dilip
Thanks for your reply @epignosisx, Your suggestion does help with ensuring if the initialization initiated by Fire and Forget in Constructor is completed before utilizing it. Which certainly helps with...
@epignosisx, may be it is just a bad example or may be I need to rephrase it. It is not a problem I am currenly having but, in case if...
@epignosisx and @kapsiR Thank you very much for your help and guidance. Much appreciated..
Can you post the snippet of you code where you are throwing exception? Is there a requirement for you to throw an exception? If not and if you are using...
Do not implement `IApiKeyProvider` and try implementing the `OnValidateKey` delegate on the Events instead. Check it out [here on the samples](https://github.com/mihirdilip/aspnetcore-authentication-apikey/blob/6e9e0523564b3d7e44875e2883c47db6e26d60ca/samples/SampleWebApi_6_0/Program.cs#L68). Cannot remember how the message is returned on the...
Just to double check - you have removed IApiKeyProvider implementation and any path in ApiKey.ValidateApiKey call does not throw any exception?
Good find. So now you know where the problem is. Hopefully you will figure it out to solve it. If you need any help, let me know with the code...
Hi @Eternal21, thank you for all the information you have provided. Looking at your debug trace logs, although ApiKeyInHeaderHandler logs appears twice, the 2 sets of asp.net middleware pipeline logs...
I am not on PC so couldn't try it. Replying from my phone. One thing I would suggest to try is on [this line]( https://github.com/Eternal21/double-log-issue/blob/b8a5923d80c7647104256d4952d4b08824427ea4/DoubleLogProject/Program.cs#L9) replace ApiKeyDefaults.AuthenticationScheme with "BearerOrApiKey" And...
Yh it would be good to see code with .AddJwtBearer