Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure functions authentication with ASP.NET Identity and JWT token

I am taking on a new development stack where I am planning to go serverless using the Azure functions.

I am thinking that my application should use ASP.NET Identity to store user credentials and other details. and he should get authenticated across Identity DB using JWT tokens.

I am trying to get hold of some examples that might be helpful to see how to implement ASP.NET Identity in Azure functions. Can anyone point me to the right direction?

like image 600
Sachin Trivedi Avatar asked Oct 29 '25 16:10

Sachin Trivedi


1 Answers

i don't think there is a efficient way to do this. because azure functions don't really have a startup or entry point in the entire app where you can plug in oauth , which is usually done in the mvc or web apps in startup.cs or global.asax.

So this has to divert a little bit from how it's done in a web application

maybe this can be of some help

https://vincentlauzon.com/2017/12/04/azure-functions-http-authorization-levels/

like image 108
Mandar Jogalekar Avatar answered Oct 31 '25 06:10

Mandar Jogalekar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!