Web API 2 and ASP Identity - Processing Blocked Users

I just ported my web application (ASP.NET MVC) to ASP Identity.

Everything works fine after some work, except for the API that the web application provides. This is WEB API 2, and it uses a carrier token mechanism to authenticate users. Authentication itself also works great. but: When the user is locked, the token for the user is still issued through the endpoint of the API token.

Is there any way to handle this? I did not find any example ...

Thank!

+4
source share
1 answer

Well, that was stupid ... Now I see clearer :)

: Web-Api2-Template "ApplicationOAuthProvider". ... GrantResourceOwnerCredentials, , , , .

, , -.

+4

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


All Articles