I am using the Spring.Net Framework (spring.rest, spring.social.core and spring.social.twitter (2.x - oauth 1.0a) with c#.
The idea of the application will be for an event, people can link their twitter account to the event and as results are received for that person. The persons result it posted to their twitter account.
I have a web mvc application that asks a user to sign in and authorise an application so that it can post on behalf of the user. This information returned (token etc) is encrypted and kept in a db linked to the user. e.g. Our website - redirect to callback url - twitter - sign in +permission - back to callback url - store token info in db encrypted.
I then have a console application (eventually a service) which looks at results, when we have a result for a person with twitter account associated and permission given. We use that information to post to their account (their result).
The sign up process works fine, and i can post to the signed up person. saying they’ve registered. (website)
The console application initially worked to be able to post up results.
However, suddenly I am getting ( i think this is just a time frame - works soon as a they register)
"POST request for ‘https://api.twitter.com/oauth/access_token’ resulted in 401 - Unauthorized (Authorization Required)."
Linked to a user (in our system) - i am encrypting and storing verifier (from callback), secret and value. I then am using this to exchange for a access token to get secret and value to be able to post.
This is currently all a demo (going to a url to 127.0.0.1) for a proof of concept.
So far only tried all this with the Spring.Social framework (c#)
Can anyone help or advice on what I should be persisting to be able to post on behalf of a user - once they’ve given us permission from a service or console application.
Thanks in advance.