Copied to clipboard

Flag this post as spam?

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


  • Harsheet 71 posts 302 karma points
    Jul 13, 2018 @ 00:02
    Harsheet
    0

    Umbraco Secure API

    Hello,

    I have to create a secure API to save data from other application. I have to add authentication as well.

    Any ideas on how to best achieve the same.

    Thanks in advance

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 13, 2018 @ 09:47
    Ismail Mayat
    0

    Harsheet,

    Your question is to vague. When you say api and save, you want to create an api that creates new content in umbraco but this content is coming from another source?

    Regards

    ismail

  • Harsheet 71 posts 302 karma points
    Jul 16, 2018 @ 00:00
    Harsheet
    0

    What would be the best option to secure the api?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 16, 2018 @ 07:58
    Ismail Mayat
    0

    Harsheet,

    I am not sure what you are trying to do? If you are looking to create an api endpoint that is serving up data from umbraco then you can make use of authorised controllers see https://our.umbraco.com/Documentation/Implementation/Controllers/ the section you need is Members & Front-end Authorization you use attribute MemberAuthorizeAttribute

    Regards

    Ismail

  • Harsheet 71 posts 302 karma points
    Jul 16, 2018 @ 23:31
    Harsheet
    0

    The API I will be creating will receive the data from an external source and I want my API to be not accessible without authorization.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 17, 2018 @ 07:52
    Ismail Mayat
    0

    So this has nothing todo with Umbraco. You need to look at https://www.asp.net/web-api/overview/security

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft