Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

sharepoint API access from internet

Posted on 2014-09-18
6
305 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 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