I have a problem that's getting me nowhere.
I made a WorkFlow in VS and in that i get user credencials from an SSS application. Now the problem is i'm not getting the info from the SSS. I get an error telling me that there were no credentials found for the user.
After some digging I found that, when I add credencials to my SSS application through Central admin it is stored correctly with the "IdentityClaimValue" of the given user. But the problem is when I start my Workflow it uses the "IdentityClaimValue" of the Network Service user, even though i'm logged in as an domain user.
I checked how i'm getting my Context and SPSite object and they have the correct user in them.
I also tried using two diferent methods of accessing SSS.
Any help would be greatly appreciated!
Code1:
SPSite site = SPContext.Current.Site;
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
var secureStoreProvider = new SecureStoreProvider { Context = serviceContext };
var credentials = secureStoreProvider.GetRestrictedCredentials(applicationID)
Code2:
SecureStoreServiceProxy sssp = new SecureStoreServiceProxy();
ISecureStore ss = sssp.GetSecureStore(provider.Context);
ss.GetRestrictedCredentials(appID);
Connect & Join Us