How to implement user authentication in the Azure Mobile app

The latest Azure Mobile Apps update finally adds support for user authentication, ref: https://azure.microsoft.com/en-us/blog/azure-mobile-apps-november-2015-update .

They included a snippet for issuing a JWT token, but my question is how to use it in my application to authenticate requests?

I assume that I need to add a custom marker handler to my WebApiConfig, but I cannot find any documents on this.

+4
source share
2 answers

In the end, I figured it out myself.

- , " ". , JWT-, "" "". [] , .

, MobileAppLoginHandler.CreateToken User. IPrincipal, , , , .

0
+2

Source: https://habr.com/ru/post/1616742/


All Articles