Page 1 of 1

Custom API method with JWT authentication

Posted: Fri Jan 26, 2024 6:22 pm
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?


Re: Custom API method with JWT authentication

Posted: Sat Jan 27, 2024 7:27 am
by MichaelG

Try the Api_Action server event with the following statement.

[Authorize(Policy = "ApiUserLevel")]