[
https://issues.apache.org/jira/browse/STONEHENGE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788955#action_12788955
]
Ben Dewey commented on STONEHENGE-111:
--------------------------------------
Pablo,
Fair enough, then the error (At least on the Account page) seems to be with a
conflict of:
if (userID == null)
{
userID = GetUserIdClaim();
}
on the getAccountProfileData never getting called because the userId is never
null. the reason it is never null is because BusinessServiceClient is setting
the userId to uid:0 when calling getAccountData
if (userID == null)
{
userID = GetDefaultUserId();
}
> .NET Trader isn't using the userId claim returned from the ActiveSTS
> --------------------------------------------------------------------
>
> Key: STONEHENGE-111
> URL: https://issues.apache.org/jira/browse/STONEHENGE-111
> Project: Stonehenge
> Issue Type: Bug
> Components: DOTNET_CLIENT
> Affects Versions: M2
> Environment: dotnet
> Reporter: Ben Dewey
>
> I can't seem to find anywhere that the TraderClient is using the userid
> returned from the active STS.
> There are two places I've seen.
> 1. Account.aspx.cs (line 40): userid is set to null and the GetDefaultUserId
> is used
> 2. Controls/AccountOrders.ascx.cs (line 46): userId is set to
> HttpContext.Current.User.Identity.Name which returns unll
> The should both be something like the following:
> userid = (from c in
> ((IClaimsIdentity)HttpContext.Current.User.Identity).Claims
> where c.ClaimType ==
> "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
> select c.Value).FirstOrDefault();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.