Solved

sharepoint API access from internet

Posted on 2014-09-18
6
311 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
[X]
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
  • 3
  • 3
6 Comments
 
LVL 32

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 32

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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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 32

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

695 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