Basic auth and Oauth

33 views
Skip to first unread message

suraiya....@lmco.com

unread,
Oct 10, 2012, 9:37:05 PM10/10/12
to learnin...@googlegroups.com
Hi Jim,
 
I see that you are now supporting Oauth, node signing and basic auth? I'm trying to first publish with basic auth and then try the other methods. Do you have any documentation I can use as reference? What is the syntax for passing user credentials for a Publish using basic auth? I've been out of the loop and just getting started, so any info would be helpful.
 
Thanks,
Suraiya
 

Jim Klo

unread,
Oct 10, 2012, 11:51:17 PM10/10/12
to <learningreg-dev@googlegroups.com>, learnin...@googlegroups.com
Hi Suraiya,

Both Basic Authentication[1] and OAuth [2] operate according to their respective specs, both requiring you to pass an Authorization HTTP header of correct form. 

I don't have specific documentation yet but can provide some example code for OAuth tomorrow. Most libraries I've tried that are capable of performing Basic Auth or OAuth seem to work in a fairly straightforward manner. 

The only thing you would need to do is create an account on the node[3] and pass the appropriate headers. There are some additional dummy endpoints on /auth/* that you can use to test credential passing for both basic auth and OAuth. 

- Jim

[1]http://tools.ietf.org/html/rfc2617


Sent from my iPhone
--
 
 

Jim Klo

unread,
Oct 11, 2012, 1:42:00 PM10/11/12
to <learningreg-dev@googlegroups.com>
As promised, you can find a sample of how to publish using Node Signing with OAuth here:


I anyone has questions regarding this please post to the list.

- Jim

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International
t. @nsomnac

On Oct 10, 2012, at 8:51 PM, Jim Klo <jim...@sri.com>
 wrote:

--
 
 

Suliman, Suraiya H

unread,
Oct 11, 2012, 1:47:30 PM10/11/12
to learnin...@googlegroups.com

Thanks Jim, this is very helpful.

Reply all
Reply to author
Forward
0 new messages