I create a custom IP-STS, when i sign in with it in SharePoint i see the identity name is "0?.t|myprovidername|test18", Now I have "username" and want to find its mapped "SPUser", so I need to recreate the login name, I can do following:
loginName = "0?.t"
loginName = SPClaimProviderManager.Local.GetUserIdentifierEncodedClaim(loginName);
but I don't know what is "0?.t" and how can i recreate it, i worry this perfix may change after i deployed the soultion to another server. so it seem not good idea to hardcode it.
is there any method to do it?
View Complete Post