.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to automatically Authenticate User on External Site once Authenticated on SharePoint Site

Posted By:      Posted Date: October 02, 2010    Points: 0   Category :SharePoint

We analyzing the implementations approach, for a scenario.

  1. External Site: To log-in to external site which has its own user store and is hosted on different domain. So user has to provide his user id and password for logging in to external site like e.g.  DOMAIN1\UserName & Password

  1. SharePoint Site: This site is hosted on different domain other than DOMAIN1 and has got windows/forms authentication. So the user to login to SharePoint site has to provide SharePoint site Credentials DOMAIN2\UserName & Password.
  2. SharePoint Web Part which shows external site in IFrame and allows user to perform CURD operation once the user is authenticated in external site.

What we want is once user login to SharePoint site using (Forms/Windows) authentication, he should be automatically authenticated in External Site (using some mechanism) the logged in user credentials are picked up from some store based on his sharepoint username and system authenticates the user on external site.

Any pointers to code/blogs/articles would be really helpful.

Akhilesh Nirapure

View Complete Post

More Related Resource Links

How to Authenticate User on External Site Using IFrame (Dynamically created in SharePoint WebPart)



I've a situation,

- External Site : This site has its own user store (user/password) to log-in to.

- SharePoint WebPart : This webpart will get some readonly data from External Site but for performing any CURD operation on the External Site the user has to Log-in to External Site using IFrame Mechanism (This login form has to be of External site, and UserName/Passwordd should be posted to login-form of External site) sharepoint shouldn't be collecting any user/password credentials. (how can we do this?)

How user gets authenticated in External Site:

1. user Provides username/password.

2. Once authenticated to User Store it set an Authentication Cookie in use browser, thus uses this cookie with every request to perform any CURD operation.

I've to have the similar functionality in SharePoint Webpart. using IFRAME.

Hope i covered all the points in my explaination, if you can provide any blog/code which is dealing with similar kind of approach.



Akhilesh Nirapure

Sharepoint Site Web Config elements Gets Deleted automatically


see i used to have a security filter settings in web config
security><requestFiltering><requestLimits maxAllowedContentLength="104857600"/></requestFiltering></security>
 but it gets deleted automatically after  i dont know why 
we tried to install something in our server yesterday it didn't worked and reverted it back to yesterdays stage( But i had updated the config files 3 weeks ago) 
but today i check the config files  these elements are  not there.

My system is 64 bit windows server 2008 with IIS 7 and MOSS 2007 SP2

Programmatically creating a SharePoint Site based on user input


I am working on developing a “Create Website Wizard” for SharePoint 2007 that would do the following (I am simplifying a little for the sake of this post):


1.      Take user input as follows:



Product Code:

Category (I, II, III):

The category will be a choice field (radio buttons or a dropdown)

User Alert Management for a specific list versus entire SharePoint site?

It seems that to be able to manage User Alerts, one must have Full Access to the entire SharePoint site - and then use => Site Settings > User Alerts. Ideally, I would like to be able to grant access to users to only be able to manage alerts for a specific list. Is this possible (without having to do any programming) and, if so, how? If such access is only available at the site level, I will simply create a Permission Level that allows one to only "Manage Alerts" Thanks in advance for any assistance. Dave

Creating and sharing new sharepoint site to internet, limiting user access

I am a new hire into an existing business as I.T. I know the networking, I know the computers. The owner now wants me to learn Sharepoint among some other things. They currently use WSS 3.0. I have been reading up on this for the last month. I think I am ready to extend the current site to make it an Internet site so the employees can login. Some other things we would like to do I have read up on and it looks like they can be done, things such as inventory tracking in collaboration with QuickBooks and creating a website / portal for clients to have a unique login on and can see the status of their jobs in custom SharePoint lists. As far as I can tell the clients need an AD account. However, apart from that I am not sure what to do. A little background.  The company has multiple clients, and we ship things out daily to those clients.  We use Sharepoint to track the status of the jobs as they progress through the stages ultimately going to delivery. There is one common page that lists all the jobs by all clients that is updated constantly. We would like to allow multiple (different) clients/logins and have a page customized for each client.  For example, you are a client and go to www.companyname.com/sharepointsite.html.  From there you would get to a portal page with a login. Once logged in you will be presented with the Shar

Internet facing SharePoint site - user shouldn't have to log in to change the langague

Hello, I am using SharePoint 2010 for Internet sites.  Anonymous access has been enabled.  Language packs have been installed so that users can switch to different languages as required.  However, the only way for a different language to be selected other than the default is for the user to log into the site and then the option would be displayed.....This is an internet facing site with anonymous access therefore users shouldn't have to log in to change the language.  Can someone guide/advise on switching the lanuguage of the site without loggin in. Thanks, Shelley

User cannot access Sharepoint site

I have a Windows Server 2008 64bit domain running Sharepoint 2010 and one user, and only one user, cannot access the default website.  I've added them to the users for the site and even given her full permissions.  She still cannot access it.  It comes up with Error: Access Denied.  You are currently logged in as and it gives the user name and an option to log in as a different user.David Kellett

Create Lookup Site Column based on External List (SharePoint 2010)


I've got an External List and I want to create a Site Column, which is Lookup to a column in my external list. If I tick any of the columns in 'Add a column to show each of these additional fields' and click OK i get the following error message:

[NullReferenceException: Object reference not set to an instance of an object.]
  Microsoft.SharePoint.SPBusinessDataField.IsInDefaultView() +58
  Microsoft.SharePoint.SPBusinessDataField.CreateSpFieldForBdcType(String bdcName, Boolean hidden, Boolean readOnly, Boolean idField, SPAddFieldOptions op) +809
  Microsoft.SharePoint.SPBusinessDataField.AddNeededSecondaryFields(String wssNames, String[] oldNames, String[] newNames, SPAddFieldOptions op) +315
  Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op) +240
  Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) +759
  Microsoft.SharePoint.SPFieldCollection.Add(SPField field) +61
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.Save() +513
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.BtnOk_Click(Object sender, EventArgs e) +46
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139

External Sharepoint 2007 Personal Site Access



I would like to have our current Sharepoint 2007 Personal Sites accessible externally to the end users via https and forms based authentication.

Can anyone advise the steps/best way to achieve this?






My Site to be mandatory when the user visits his intranet portal in SharePoint 2010


I have always had this in my mind,

its like i am creating an Intranet portal so i want my users who has access to intranet portal, when logs on to the site should prompt the user to mandatory complete his profile and like every 6 months should alert the user to update his profile.

this should be tricky,

looking forward for your replies


Sanny Boy!!

Anonymouse user - Cannot search in SharePoint 2010 internet facing site


Anonymouse user - Cannot see search results in SharePoint 2010 internet facing site. They see blank results.aspx while admin see all search result.

How to make Anonymouse user - see search results in SharePoint 2010 internet facing site?

Authenticated, when deploying the reports(SSRS 2008) to a sharepoint site

I created reports in SSRS 2008 for a sharepoint list. But when I tried to deploy it to the report library I used to get an authentication pop-up box again and again. I used all the username and password. But no luck. Does any one knows how to overcome this situation.

how to get current logged in user for sharepoint site


Hi ,

im not able to get the current logged in user for sharepoint site.

for example--if i logged in with "abc" in my system and  logged in with "pqr" on sharepoint site.
then "oWeb.CurrentUser " return the "abc" .
 but as per me..i want pqr--bez im logged in to share point site with "pqr" user.

Update User Profile info from another SharePoint site


Hi All,

I have MOSS 2007 up and running, and the Staff Profile is maintained by the users.

Now there is another NEW sharepoint 2010 apps planning. In order to avoid the duplication of staff profile in SharePoint 2010, the requirement is to update the SharePoint 2010 Staff Profile from the existing MOSS 2007.

Is it possible? Any help.


Set the theme for each user for a SharePoint 2010 site.



i want to give each user to set there own theme , in a site and when they login again on the given site they should found there own theme for there login only.

so for each user can set there own theme and when ever he / she login again they should see there theme , in the site.

thanks and regards

james bond

Get the Sign In as a different user event in sharepoint site.



i want to save some data for a each user when he/she log out from a sharepoint site ,

so can i get the  event of "sign in as a diffenrent user" in sharepoint .

Access Denied while user logs out sharepoint 2010 FBA site




I've sharepoint 2010 site configured as forms based authentication having my custom membership provider. 

On this site, i've a simple webparts that basically contains a asp.net login status control to allow users to login/logout. it works fine .. when user is not logged in it shows Login link that redirects users to the login page and when user is logged in, it shows Logout link. 

but when i click logout link, user is not logged out completely. I get this error - Access denied and when i go back to the page (by clicking on the link provided on error page or just refresh the page) - the user is still logged in on the site !!

Here's the code snippet of my webpart:

This exact same functionality is working fine MOSS but it doesn't seem to work here !!


protected override void CreateChildControls()
LoginStatus loginStatus = new LoginStatus();
loginStatus.LoginText = "Log in";
loginStatus.LogoutText = "Log out";
loginStatus.LogoutAction = LogoutAction.RedirectToLoginPage;

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend