incubator-esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hirsch <hirsch.d...@gmail.com>
Subject Re: integration-admin role required for api2 calls ?
Date Mon, 12 Jul 2010 14:19:53 GMT
I just tried the old api and it works as well:


curl --dump-header headers -d "token=U3C5WWXGT1MITAF2E3XKV2LRXOFQCLO3"
http://localhost:8080/api/login
<?xml version="1.0" encoding="UTF-8"?>
<esme_api operation="login" success="true" ><xml:group></xml:group></esme_api>

I started with jetty:run


On Mon, Jul 12, 2010 at 4:08 PM, Imtiaz Ahmed H E <in.imtiaz@gmail.com> wrote:
> Dick,
>
> The old API is not available in the current svn read only checkout (should
> be API.scala , I guess)
>
> Can you help ?
>
> Imtiaz
>
> ----- Original Message ----- From: "Richard Hirsch" <hirsch.dick@gmail.com>
> To: <esme-dev@incubator.apache.org>; <in.imtiaz@gmail.com>
> Sent: Monday, July 12, 2010 12:46 PM
> Subject: Re: integration-admin role required for api2 calls ?
>
>
> On Mon, Jul 12, 2010 at 9:09 AM,  <in.imtiaz@gmail.com> wrote:
>>
>> Why am I getting 403, the token is exactly as got from one of the users in
>> the UI without an integration-admin role.
>
> Are you sure that the token is correct?
>
> Ideas:
>
> * Start with mvn jetty:run and try   ++++++ curl --dump-header headers
> -d "token=[YOUR_TOKEN]" http://localhost:8080/api2/session
>
> * Try the oldAPI with the same token -+++++  curl --dump-header
> headers -d "token=[YOUR_TOKEN]" http://localhost:8080/api/login
>
>
> D.
>
>
>>
>> Sent from BlackBerryŽ on Airtel
>>
>> -----Original Message-----
>> From: Richard Hirsch <hirsch.dick@gmail.com>
>> Date: Mon, 12 Jul 2010 09:05:21
>> To: <esme-dev@incubator.apache.org>
>> Reply-To: esme-dev@incubator.apache.org
>> Subject: Re: integration-admin role required for api2 calls ?
>>
>> you don't need the role to login in via the session method . You just
>> need the role when creating users or tokens via the api2.
>>
>> D.
>>
>> On Mon, Jul 12, 2010 at 9:01 AM, Imtiaz Ahmed H E <in.imtiaz@gmail.com>
>> wrote:
>>>
>>> and how do you get this role ? Not having that role is probably why I'm
>>> getting '403 Forbidden' in the following...
>>>
>>>
>>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>>> $ curl --dump-header headers -d "token=RCJ44VUZEOEES3NR1EZEIK32PF1BNOBQ"
>>> http:/
>>> /localhost:8080/api2/session
>>>
>>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>>> $ cat headers
>>> HTTP/1.1 403 Forbidden
>>> Expires: Sun, 11 Jul 2010 08:29:09 UTC
>>> Set-Cookie: JSESSIONID=d8a63eqezeownsy8qnayuhwy;Path=/
>>> Content-Length: 0
>>> Date: Sun, 11 Jul 2010 08:29:09 UTC
>>> Pragma: no-cache
>>> Content-Type: text/plain; charset=utf-8
>>> Cache-Control: no-cache; private; no-store
>>> X-Lift-Version: 2.0-SNAPSHOT
>>> Server: Jetty(6.1.24)
>>>
>>>
>>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>>> $
>>>
>>> Imtiaz
>>
>
>

Mime
View raw message