Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Page Viewer web part and web application

  Asked By: Betsy    Date: Jan 26    Category: Sharepoint    Views: 2702

We are currently developing an application where we display our .NET web
application in the Page Viewer web part .

My requirement is to pass the credentials of the user logged into the
WSS site into the Web Application displayed in the page viewer web part.

Currently I am able to use 2 different users for the WSS site and the
application in the page viewer

We do not want different users accessing the WSS site and the Web
application though it would possible through the 'Prompt for
credentials' setting in the client IE



1 Answer Found

Answer #1    Answered By: Trinity Scott     Answered On: Jan 26

Here is the trick I use:

A SharePoint user  is actually based on network user (active directory).
When a user is connecting to SharePoint, it connects based on 'Integrated
Windows Authentication'.
You set up your custom web  application to run based on same kind of
authentication (you do the settings from Control Panel -> Admin Tools ->
IIS admin); when the page  Viewer web part  try to open and show on
SharePoint your application  page it will be asked for windows credential
for authentication, your custom web application will be 'hit' with the
same credentials  as SharePoint page. At the start page of your
application (maybe at page_load) just use System.Environment.UserName to
retrieve the user name.

Didn't find what you were looking for? Find more on Page Viewer web part and web application Or get search suggestion and latest updates.