Solved

sharepoint API access from internet

Posted on 2014-09-18
6
307 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 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
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.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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