Custom API method with JWT authentication

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Andros
User
Posts: 111

Custom API method with JWT authentication

Post by Andros »

Hi, I need to build a Custom API method, but with JWT authentication (by default all custom apis are without authantication). I need to do this exactly like standard api methods. Is there an easy way to do this?


MichaelG
User
Posts: 1110

Post by MichaelG »

Try the Api_Action server event with the following statement.

[Authorize(Policy = "ApiUserLevel")] 

Post Reply