I think from beta 2 onwards, this will work:
====
private PassportIdentity PassportUser;
if (!(HttpContext.Current.User.Identity is
System.Web.Security.PassportIdentity))
{
PassportUser = null;
}
else
{
PassportUser = (PassportIdentity)HttpContext.Current.User.Identity;
}
PassportUID = PassportUser.Name;
====
PassportIdentity.Name currently returns the person's sign-in ID, but as of
beta 2 I gather it will return the 64-bit PUID instead. If you want the PUID
with beta 1 you can access the upper and lower 32-bit words separately
using:
int Upper32bits = PassportUser["memberidhigh"];
int Lower32bits = PassportUser["memberidlow"];
and glue them together.
For reference, here are all the Passport profile fields:
http://www.passport.com/sdkdocuments/sdk14/reference/miscref/r_profilecoreta
ble.htm
ASPToday.com should be publishing my piece on Passport and .NET in the next
few days.
Ollie
----- Original Message -----
From: "Suman Banerjee" <suman_24@y...>
To: "ASP+" <aspx@p...>
Sent: Friday, April 27, 2001 12:17 AM
Subject: [aspx] passport
> Dar all,
>
> Could any one tellme how do I retrieve the PUID from
> PASSPORT in ASP.net C# code??
>
> Any immediate help will be greatly appreciated
>
> Thanks in advance
> Suman
>