David Johnson created USERGRID-253:
--------------------------------------

             Summary: 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/[email protected]?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)

Reply via email to