get a resource with credentials

10 views
Skip to first unread message

@chucre

unread,
Mar 17, 2011, 10:16:58 AM3/17/11
to restfulie-dotnet
Hi boys,

I want use restfulie.net to consume my resources. But these resources
are protected my a oauth credentials. How I use restfulie with a oauth
cenarios, for example.

Thanks

Mauricio Aniche

unread,
Mar 17, 2011, 1:05:35 PM3/17/11
to restfuli...@googlegroups.com
Hi Fernando,

What is your first and second OAuth request? And then, what's your
real request, with the tokens?

Regards,
Mauricio

Fernando Chucre

unread,
Mar 17, 2011, 1:26:06 PM3/17/11
to restfuli...@googlegroups.com, Mauricio Aniche
The param must be access_token. 

P.S: My intent is not request the access token is use it.

Thanks,

Fernando Chucre



2011/3/17 Mauricio Aniche <maurici...@gmail.com>

Fernando Chucre

unread,
Mar 17, 2011, 5:43:25 PM3/17/11
to restfuli...@googlegroups.com, Mauricio Aniche
Mauricio,

I do some litle modification on project. 

We can use it like this:
var credentialApplier = new QueryPathCredentialApplier(new Dictionary<string, string> { { "header_auth", "value_auth" } });
dynamic order = Restfulie.At(resourceURI).WithCredentialApplier(credentialApplier).Get();


Thanks,

Fernando Chucre



2011/3/17 Fernando Chucre <fernand...@gmail.com>

Fernando Chucre

unread,
Mar 18, 2011, 9:53:18 AM3/18/11
to restfuli...@googlegroups.com, Mauricio Aniche
Anyone looked my changes? It is useful to me, but may not be to you.

Feedback are wellcome,

Mauricio Aniche

unread,
Mar 18, 2011, 1:43:30 PM3/18/11
to restfuli...@googlegroups.com
Hi Fernando,

I still didn't look to the implementation. I will do it this weekend!

But yes, of course we are interested in your contribution! :)

Regards,
Mauricio

Fernando Chucre

unread,
Mar 18, 2011, 1:50:15 PM3/18/11
to restfuli...@googlegroups.com, Mauricio Aniche
I look and maybe a litle change can be done.

With my current change we will use some like that:
var credentialApplier = new QueryPathCredentialApplier(new Dictionary<string, string> { { "header_auth", "value_auth" } });
dynamic order = Restfulie.At(resourceURI).WithCredentialApplier(credentialApplier).Get();

But, If I want use the same credentials in these context. Maybe I can do:
var credentialApplier = new QueryPathCredentialApplier(new Dictionary<string, string> { { "header_auth", "value_auth" } });
dynamic order = Restfulie.WithCredentialApplier(credentialApplier).At(resourceURI).Get();



Fernando Chucre



2011/3/18 Mauricio Aniche <maurici...@gmail.com>
Reply all
Reply to author
Forward
0 new messages