Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carlos Casalicchio 104 posts 444 karma points
    May 02, 2019 @ 23:32
    Carlos Casalicchio
    0

    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?

  • Carlos Casalicchio 104 posts 444 karma points
    May 03, 2019 @ 01:38
    Carlos Casalicchio
    100

    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.

Please Sign in or register to post replies

Write your reply to:

Draft