openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #10472
Re: Using Nova APIs from Javascript: possible?
-
To:
<openstack@xxxxxxxxxxxxxxxxxxx>
-
From:
Sandy Walsh <sandy.walsh@xxxxxxxxxxxxx>
-
Date:
Tue, 24 Apr 2012 11:49:06 -0300
-
In-reply-to:
<CAJMabq0H8C2rzgQhPwdebUJrNdAEpA3hG7Y1OdnyHdT=3_VRbw@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20
On 04/24/2012 11:19 AM, Nick Lothian wrote:
> JSONP is great, but won't work with POST requests.
Hmm, good point.
> I don't quite understand what "Due to the redirect nature of the auth
> system" means, though.
>
> If I use a custom Webkit browser & allow cross domain XMLHttpRequests it
> works fine - I do a POST to /v2.0/tokens, get the token and then use
> that. What am I missing?
The Auth system will give you a token and then a new "management" url
where the actual commands are issued (the real Nova API endpoint). These
are often two different systems (domains), so cross-site requests are
mandatory.
-S
> Nick
>
> On Tue, Apr 24, 2012 at 8:57 PM, Sandy Walsh <sandy.walsh@xxxxxxxxxxxxx
> <mailto:sandy.walsh@xxxxxxxxxxxxx>> wrote:
>
> Due to the redirect nature of the auth system we may need JSONP support
> for this to work.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> <mailto:openstack@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
Follow ups
References
-
Using Nova APIs from Javascript: possible?
From: Nick Lothian, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Adrian Smith, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Nick Lothian, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Adrian Smith, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Adam Young, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Tres Henry, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Adam Young, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Tres Henry, 2012-04-23
-
Re: Using Nova APIs from Javascript: possible?
From: Sandy Walsh, 2012-04-24
-
Re: Using Nova APIs from Javascript: possible?
From: Nick Lothian, 2012-04-24