Solved

sharepoint API access from internet

Posted on 2014-09-18
6
302 Views
Last Modified: 2014-10-05
Hi,

I have sharepoint server which i can access for sites and Sharepoint API through custom C# application when i am connected via VPN to the network.

I want to know if I can access sharepoint API through internet even when i am not connected to the network via VPN. I need to build custom application which can access and add data to our sharepoint site/lists.
0
Comment
Question by:ziorinfo
  • 3
  • 3
6 Comments
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40330066
What version of SharePoint are we talking about?

OAuth is likely the best way forward for you;

http://msdn.microsoft.com/en-us/library/office/fp142382(v=office.15).aspx
0
 

Author Comment

by:ziorinfo
ID: 40331931
We are using SP 2010
0
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 40332088
OK, that limits things a little.

You won't get direct access to the API anyway, however you can access and add data via the external interfaces - web services and Client Object Model.

There's an example of using Forms Based Auth for web services  here; http://www.tonytestasworld.com/post/2009/06/04/How-To-Authenticate-and-Use-SharePoint-Web-Services-in-an-FBA-SharePoint-site.aspx

There are many examples of passing credentials to web service calls;

http://blogs.msdn.com/b/tejasr/archive/2009/09/25/ways-to-pass-security-credentials-to-web-service-call.aspx

http://sharepoint.stackexchange.com/questions/44361/how-can-i-pass-credentials-to-sharepoint-2010-people-service

http://blogs.msdn.com/b/chjain/archive/2013/11/29/sharepoint-online-pass-credentials-to-web-service-passively.aspx
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:ziorinfo
ID: 40332173
Thanks Jamie for the links, I will go through them...

Please excuse me if my questions are too obvious or stupid :-) I don't know SP that well yet....

I want to confirm one thing...if my SharePoint server is internal, first I need to have it accessible with the static ip over internet for outside world.

Do I need to change anything in SharePoint settings or IIS so that SharePoint services are accessible as well, or using client Object model will have access to the API by default.

I mean do i need to do anything with firewall, or network settings...?
0
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40332257
You have to be really careful with this. I would not expose my SharePoint farm to the open internet in any way. (Or any other business application or data frankly)

To do this I'd want VPN access by authenticated business users.

Who are the users of the application you want to write? How do they currently authenticate to SP?
0
 

Author Closing Comment

by:ziorinfo
ID: 40363012
Thanks for your input...its really helpful...
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now