Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to get logged in user from another app?

Reply
Thread Tools

How to get logged in user from another app?

 
 
John Dalberg
Guest
Posts: n/a
 
      04-16-2005


I have an Intranet asp.net application that opens multiple frames in its
main page. Authentication to the Intranet app is forms based. The app is
third party closed source. One of the frames can display other apps which I
develop. What I want to do is I don't want any user access my apps from
outside the Intranet and I want to be able from inside my app to find out
who is the current user.

I can get the Intranet use sql server as a state server and it can save the
current user in a database. However in *my* application, how can I
determine the current Intranet user for the client that sent a request to
access my app? It seems the solution is simple and out there but I can't
get my hands on it.

Is there a way to have my apps and the Intranet app share the same session
without me having the source code for the Intranet app?

TIA.

--

John Dalberg
 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      04-17-2005
Hi John,

For Intranet, If you use windows authentication and deny
anonymous access:
<authentication mode="Windows"/>
<authorization>
<deny users="?" /> <!-- deny anonymous -->
<allow users="*" /> <!-- Allow all users -->
</authorization>

You can use

Page.User.Identity.Name
Page.User.IsInRole

to find out authentication user and determine user's role
without user logging in process.

HTH

Elton Wang
http://www.velocityreviews.com/forums/(E-Mail Removed)


>-----Original Message-----
>
>
>I have an Intranet asp.net application that opens

multiple frames in its
>main page. Authentication to the Intranet app is forms

based. The app is
>third party closed source. One of the frames can display

other apps which I
>develop. What I want to do is I don't want any user

access my apps from
>outside the Intranet and I want to be able from inside my

app to find out
>who is the current user.
>
>I can get the Intranet use sql server as a state server

and it can save the
>current user in a database. However in *my* application,

how can I
>determine the current Intranet user for the client that

sent a request to
>access my app? It seems the solution is simple and out

there but I can't
>get my hands on it.
>
>Is there a way to have my apps and the Intranet app share

the same session
>without me having the source code for the Intranet app?
>
>TIA.
>
>--
>
>John Dalberg
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serious issue: parts of my page render as not logged in, parts as logged in. Help! pcloches@gmail.com ASP .Net 1 04-12-2007 12:50 AM
Force logout on machine1 when user logged into another machine Chumma Dede ASP .Net 4 05-03-2006 04:02 PM
LoginView does not show a logged in user as being logged in keithb ASP .Net 0 02-16-2006 05:20 PM
Dispalying Welcome User to logged in user mark ASP .Net Web Controls 4 10-07-2005 11:12 AM
Get the current logged in user name Imran Aziz ASP .Net Security 8 08-29-2005 03:54 AM



Advertisments