Solved

sharepoint API access from internet

Posted on 2014-09-18
6
297 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

17 Experts available now in Live!

Get 1:1 Help Now