I would like to integrate my own ASP .NET Application into a Sharepoint site in a Page Viewer Web Part (via URL).
My Sharepoint is accessible via: http://subdomain.domain.com
My ASP .NET Application is accessible via: http://othersubdomain.domain.com
Sharepoint and the other application are hosted on different servers.
As the sharepoint and the application should be accesible from outside of my Domain (public via Internet) I use Basic Authentication for both.
Now when I open the Sharepoint site I have to enter my user credentials once and when I navigate to my Applicaiton within sharepoint I have to enter my user credentials for the ASP .NET Application a second time (same credentials, user from a Active directory domain).
Is there a possibility to integrate my application into sharepoint without the need to sign on twice and without the need to install my application on the sharepoint server?
Thank you!
Related
I have to create a new ASP.Net MVC web app. This web app will accessed by company users internally and externally. Users are already in active directory.
When accessed externally, authenticate using their AD username and password from login page.
Any reference would be helpful.
The easiest way is to use Windows authentication when creating the ASP.NET MVC site.
This requires your web server to be in the same AD as the users, so if you plan to have it hosted somewhere, that is not an option.
If you plan to have the server hosted somewhere outside your AD, you should take a look at ADFS or sync to Azure AD (you don't have to use Azure for anything else).
The built-in authentication methods are described in the Microsoft docs
I have integrated my ASP.NET website into a SharePoint Site by using an IFrame in the SharePoint Page via a Content Editor Web Part. The ASP.NET web application doesn't have any authentication & authorization implemented in it.But the SharePoint site is having some authentication implemented. Now my requirement is how to get and use that SharePoint authentication information in my ASP.NET web application programmatically to do some code manipulations based on the authenticated user level.Any help would be appreciated.Thanks in Advance
The 'Right' way of doing it would be to redevelop your site as a collection of Application pages. This allows you to limit permissions to Site Collection Administrators, or just about any level of SharePoint Authentication.
http://msdn.microsoft.com/en-us/library/Ee231581(v=vs.100).aspx
This allows you to use the SharePoint object model directly in your 'web' application.
It's a bit complicated to shift from a traditional web application to getting all the pieces running under the Sharepoint _layouts folder, but its worth the time spent and pretty easy to update.
It should be noted that your existing IIS website would be removed and the pages re-homed to that layout folder, via a SharePoint Feature containing your application pages.
I need to integrate my sharepoint site and ASP.net site. So, First login will occur in the SharePoint site with Active Directory authentication and from there i need to traverse to ASP.Net site through a link. Now my question is whether its possible to pass my SharePoint Active Directory credentials to ASP.Net site? Will i be able to do this through a query string? Will i be able to navigate to and fro between SharePoint and ASP.Net sites.
The main point here is the user should not enter his credentials twice ( ie.. He should be authenticated automatically while navigating between two sites.)
What are the options available for me?
Do these things possible to achieve? SharePoint will be hosted using Windows SharePoint Services 3.0.
Thanks in advance,
ReplyQuote
Is the ASP.NET site on the same network? If so, then you can use AD (Windows Auth) for authentication on the ASP.NET site just like you're using it on the SharePoint site. You don't need to pass the credentials, and you can't anyway since all you have is an authenticated identity. If you configure the ASP.NET site to require Windows Authentication, you'll be able to get the user's identity from the server variables (AUTH_USER).
See How to: Use Windows Authentication in ASP.NET 2.0
i have developed an web application[ERP FOR A SCHOOL].i have given the build for it is working fine, but now i need to provide this web Aplication in my company web site where user's[clients] can see the Web applicatin . now what is this web applicationis all a out. our application is developed using using Sql Server 2005, .net 3.5(vs2008).
now i need to provide an link button type in our company web site. once the user clicks that link button. a new window should open which will take us to the web Apllication demo[ERP School Application]
how to achive this. any idea how to get it done. what are the things that i should take care here
any help would be great
thank you
Create a new website in IIS and linking to it.
OR
Merge the website and application by:
Completely merging then into one system.
Creating a virtual directory for the application.
Making the Application the WebSite/Root application and creating a virtual directory for the website
Whole this setup fully dependent on which platform your web server is?
sceneario1: company web server is on linux
1. You need to get permissions from you web administrators for editing pages and server login and passwords. You can use telenet to login on your company web server
2. Create a new IIS (internet information server) on seperate windows m/c. setup this server with sql and web address. look in http://support.microsoft.com/kb/323972
3. Add this new web address in your company web page as link.
sceneario1: company web server is on windows
1. You need to get permissions from you web administrators for editing pages and server login and passwords.
2. Check if sql is available on server
3. create new folder and put you whole web project in it.
4. Edit existing page from web.
This will not mess up any thing on your company server.
Er, why can't you just create a virtual directory or a new site in IIS and put a link (with a target="_blank") to it on the parent site?
I have a custom ASP.NET web site, it has code in App_Code and lots of dependencies in bin folder. Additionally, this web site should host InfoPath XmlFormView control. I also have custom authentication system, based on forms authentication (<authentication> and <authorization> are configured in web.config).
There is some documentation on hosting XmlFormView in custom environment (like this one - http://msdn.microsoft.com/en-us/library/aa701078.aspx), however I counldn't find any resources, describing our particular case.
I have the following problems:
App_Code and bin folders. Because of these, we cannot deploy our site to virtual directory (such as _layouts). I've solved this by setting up IIS application within SharePoint IIS web site. This seems to work, but is this correct?
Forms authentication. This is the hardest problem. It is not clear how to set it up correctly for custom web site, working in SharePoint context (so that XmlFormView would work). If I configure forms authentication in web.config of IIS application of SharePoint web site and configure SharePoint for anonimous access, XmlFormView cannot download some resources and crash with error. Also the problem is that I have to configure both whole SharePoint and forms library for anonimous access, otherwise I get access denied error. I don't really like to have my SharePoint web site having public anonimous access.
In general the question is – what is the correct way of hosting XmlFormView control in custom web site with .dlls in bin folder and code in App_Code folder and custom authentication, based on ASP.NET forms authentication.
Installed software:
Windows Server 2008
IIS 7
MOSS 2007
My workaround solution to this problem was to configure "container" SharePoint web site to use forms authentication too and to use SqlMembershipProvider in this configuration. It's important to use the same coookie name in both SharePoint web site and custom web site authentication configurations.