Post a Comment. Thursday, May 27, Using WindowsIdentity. Impersonate in SharePoint applications. Let's say that you have a SharePoint workflow that needs to call a web service and that the web service needs to be called using the identity of the user that started the workflow.
Unfortuately, workflows run don't run as the user who started the workflow instance, so you can't just use the current context's user. You can try it for yourself. Good that you found an answer : — EdmundYeung Add a comment.
Active Oldest Votes. The reason is due to security. This means that You have the users credentials as opposed to just its identity. That set of credentials is good for impersonation, not just local access. You generally need to set the ClientCredentials or set proxy. Improve this answer. Aron Aron Name, identity. IsAuthenticated, identity. GetCurrent ; Helper. ImpersonateAnonymousUser ; Console. Identity; return string. Concat identity. Name, ",", identity.
IsAuthenticated, ",", identity. Concat e. WriteLine svc. WriteLine e. Message ; Console. GetCurrent ; MakeRequest ; Console. WriteLine ; Console. Principal Assembly: System.
SerializableAttribute ComVisibleAttribute. Important This type implements the IDisposable interface. In this article. WindowsIdentity IntPtr. WindowsIdentity IntPtr, String. WindowsIdentity String. WindowsIdentity String, String. WindowsIdentity WindowsIdentity. Inherited from ClaimsIdentity. Gets or sets the identity of the calling party that was granted delegation rights. Gets or sets the token that was used to create this claims identity. Gets the claims associated with this claims identity.
Gets a value indicating whether the user has been authenticated by Windows. Gets or sets the label for this claims identity. AddClaim Claim. Adds a single claim to this claims identity. Adds a list of claims to this claims identity. CreateClaim BinaryReader. Dispose Boolean. Equals Object.
Determines whether the specified object is equal to the current object. Inherited from Object. Retrieves all of the claims that are matched by the specified predicate.
FindAll String. Asked 1 year, 10 months ago. Active 1 year, 10 months ago. Viewed 37 times. Improve this question. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook.
0コメント