You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2014/12/12 22:40:13 UTC

[jira] [Resolved] (USERGRID-253) Superuser token not working correctly

     [ https://issues.apache.org/jira/browse/USERGRID-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson resolved USERGRID-253.
------------------------------------
    Resolution: Not a Problem

Could not reproduce.

> Superuser token not working correctly
> -------------------------------------
>
>                 Key: USERGRID-253
>                 URL: https://issues.apache.org/jira/browse/USERGRID-253
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>    Affects Versions: 1.0
>            Reporter: Rod Simpson
>            Assignee: David Johnson
>             Fix For: 1.0.1
>
>
> # curl -X POST -d '
> {"grant_type":"password","username":"superuser", "password":"<superuser password here>"}
> ' http://localhost:8080/management/token
> # curl -X POST "http://localhost:8080/management/orgs/bigstore/users/user1@example.com?access_token=YWMtv0DtmmrREeS9Rx0XV0A3lAAAAUnKv2bpEPDQOg2n0oi4bhEfML3n43p2Ewo"
> {"error":"web_application","timestamp":1415841643783,"duration":1,"exception":"javax.ws.rs.WebApplicationException"}
> # curl -X DELETE "http://localhost:8080/management/users/user2@ example.com/organizations/bigstore?access_token=VZXGVCZGXZVHDXB"
> {"error":"unauthorized","timestamp":1415841704977,"duration":0,"exception":"org.apache.usergrid.rest.exceptions.SecurityException","error_description":"No admin user access authorized"}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)