[chef] Re: Re: Can i authenticate myself as an admin using the RESTful API (in java code)?


Chronological Thread 
  • From: Dikang Gu < >
  • To:
  • Subject: [chef] Re: Re: Can i authenticate myself as an admin using the RESTful API (in java code)?
  • Date: Tue, 20 Oct 2009 11:37:26 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=w3bwbsh9TB09ozoDTFVfOUy/YRpWjIWPAE9iTFjITEyzVvdJk6+uUvymfF0D5RxQT6 08P0Xp17RtERsq898FCqWp8kvOJHmyqtGLnz7CUXjjHKvok/m7yEfxu6lMMaL5WuONLI XOKjj2Ffse9jJEdR7rmDqIf4QDIbBX8z86liw=

please refer to my mail: "A problem when implementing the java client of chef".

On Tue, Oct 20, 2009 at 11:32 AM, Dikang Gu < "> > wrote:
Thank you Adam!

And after the authentication, will I get any information (like some tokens), that I will use in the http call?  To tell the chef-server that I have been authenticated?

Thanks 
Dikang

On Tue, Oct 20, 2009 at 2:25 AM, Adam Jacob < " target="_blank"> > wrote:
Sure - you need to just create a new client credential, and then set
it to be an administrator.

See the 'register' and 'authenticate' methods here:

http://gist.github.com/100837

Adam

On Mon, Oct 19, 2009 at 3:02 AM, Dikang Gu < " target="_blank"> > wrote:
> As per subject. So that I can do the operations just like users on the web
> UI?
> Thanks
> Dikang



--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: " target="_blank">





Archive powered by MHonArc 2.6.16.

§