I need to develop a custom controller that accepts web api calls from an external source (integration with third party app).
Have already been able to implement a SurfaceController that processes an web api call (using postman). But, one of the requirements is to require an API Key in order to allow the web api call to go through.
Have tried a few things, but none block requests, everything goes through if using the /umbraco/surface/ path.
Is it even possible to develop an API Key validation for Umbraco Controllers?
Controller that authorizes from API Key
Hello Folks,
I need to develop a custom controller that accepts web api calls from an external source (integration with third party app).
Have already been able to implement a
SurfaceController
that processes an web api call (using postman). But, one of the requirements is to require an API Key in order to allow the web api call to go through.Have tried a few things, but none block requests, everything goes through if using the
/umbraco/surface/
path.Is it even possible to develop an API Key validation for Umbraco Controllers?
After some fiddling, got it working using
UmbracoApiController
and a modified version of Secure ASP.NET Web API using API Key Authentication – HMAC Authentication to work without all the fluff and login into the backoffice programmatically.is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.