Learning SharePoint   Enhance Your SharePoint Knowledge


 
Current User: Guest
Please consider registering
Plase note that the Forum works well in IE8, Firefox, Chrome and Safari


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Secure Store won't ger correct user

UserPost

2:04 pm
February 22, 2012


Culi

Guest

 
1

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);


Ads by Google

Reply to Topic:
Secure Store won't ger correct user

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
10 + 3
   



 
Subscribe to Learning SharePoint Subscribe
Twitter Learning SharePointFollow Us
in Learning SharePoint

Random Posts

SharePoint 2010 Developer FAQs
SharePoint 2010 Developer FAQs

This is a summary of our most common asked Forum Questions. Q. How do I deploy my custom CSS file»

SharePoint 2013 Screenshots, First look, Design
SharePoint 2013 Screenshots, First»

As the title says here is First look at SharePoint 2013 beta Screens… We will keep you posted as their»

Get Created date for Sharepoint list
Get Created date for»

Ever wanted to get the date when sharepoint list was created …hummm.. here is the powershell script to get that»