You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Udara Liyanage <ud...@wso2.com> on 2013/11/08 18:00:33 UTC

Basic authentication did not work

Hi,

I am using JCloud to statup instances in vcloud setup.  When I did it using
curl it worked fine.

echo -n "udarasampath@udarasampath:admin321" | openssl enc -base64

curl -i -k -H "Accept:application/*+xml;version=1.5" -X POST    "
https://mycloud.stratogen.sg/api/sessions" -H "Authorization: Basic
base64Encoded"

However when using jclouds , with the base64 encode token of the basic
authentication produce an Access Forbidden error.

Do I missing something here?


-- 
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Basic authentication did not work

Posted by Andrew Phillips <ap...@qrmedia.com>.
>> Ah, OK (@Nirmal: there should be no implementation change there
>
> Andrew, when I tried vcloud way back (jclouds 1.5.0-beta4), I've to pass
> the base64 encoded value AFAIR. May be I've mistaken, sorry if so.

No, my bad. You know more about how the vcloud API in jclouds used to  
work than I do...I've learned something new, again ;-)

ap

Re: Basic authentication did not work

Posted by Nirmal Fernando <ni...@wso2.com>.
On Sun, Nov 10, 2013 at 12:13 AM, Andrew Phillips <ap...@qrmedia.com>wrote:

> Nope. I'm passing plain text credentials. The base64 encoding is done by
>> jclouds basic authentication.
>>
>
> Ah, OK (@Nirmal: there should be no implementation change there


Andrew, when I tried vcloud way back (jclouds 1.5.0-beta4), I've to pass
the base64 encoded value AFAIR. May be I've mistaken, sorry if so.


> ). Still the same error, I take it?
>
> ap
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/

Re: Basic authentication did not work

Posted by Andrew Phillips <ap...@qrmedia.com>.
> Nope. I'm passing plain text credentials. The base64 encoding is done by
> jclouds basic authentication.

Ah, OK (@Nirmal: there should be no implementation change there).  
Still the same error, I take it?

ap

Re: Basic authentication did not work

Posted by Udara Liyanage <ud...@wso2.com>.
Nope. I'm passing plain text credentials. The base64 encoding is done by
jclouds basic authentication.

Touched, not typed. Erroneous words are a feature, not a typo.

Re: Basic authentication did not work

Posted by Nirmal Fernando <ni...@wso2.com>.
On Fri, Nov 8, 2013 at 11:53 PM, Andrew Phillips <ap...@qrmedia.com>wrote:

> However when using jclouds , with the base64 encode token of the basic
>> authentication produce an Access Forbidden error.
>>
>
> Are you passing the base64 encoded version of the password to jclouds as
> the "credential"? That should not be necessary - jclouds will take care of
> the encoding for you.
>

Oh... implementation got changed huh? That's a good feature.


> What happens if you use the plaintext value?
>
> ap
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/

Re: Basic authentication did not work

Posted by Andrew Phillips <ap...@qrmedia.com>.
> However when using jclouds , with the base64 encode token of the basic
> authentication produce an Access Forbidden error.

Are you passing the base64 encoded version of the password to jclouds  
as the "credential"? That should not be necessary - jclouds will take  
care of the encoding for you.

What happens if you use the plaintext value?

ap