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?
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
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
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
What would be the best option to secure the api?
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
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.
So this has nothing todo with Umbraco. You need to look at https://www.asp.net/web-api/overview/security
Regards
Ismail
is working on a reply...