usergrid/stack — Issue #3: Not able to use basic auth
Author: jolivares
Created: 2011-12-26 17:25:20+00:00
State: open

**USER CREATION**

1 > POST http://localhost:8001/test-app/users
1 > accept: */*
1 > content-length: 184
1 > content-type: application/json
1 > host: localhost:8001
1 > connection: Keep-Alive
1 > accept-encoding: gzip,deflate
1 >
{"access_token":"XuquVi_lEeG95gAjFFlxyA:YWQ6AAABNHtfwzNnnpHnUCRX8beARpt9MMbNeyXq_Q","email":"martaruiz@wikipedia.org","username":"jennifer","name":"Nuria Stewart","password":"geQ1bvd"}

1 < 200
1 < Content-Type: application/json
1 < Access-Control-Allow-Origin: *
1 <
{
"action" : "post",
"application" : "5f3f8526-2fe5-11e1-bde6-0023145971c8",
"params" : {
},
"path" : "/users",
"uri" : "http://localhost:8001/5f3f8526-2fe5-11e1-bde6-0023145971c8/users",
"entities" : [ {
"uuid" : "60fa067c-2fe5-11e1-bde6-0023145971c8",
"type" : "user",
"created" : 1324919801884018,
"modified" : 1324919801884018,
"access_token" : "XuquVi_lEeG95gAjFFlxyA:YWQ6AAABNHtfwzNnnpHnUCRX8beARpt9MMbNeyXq_Q",
"activated" : true,
"email" : "martaruiz@wikipedia.org",
"metadata" : {
"path" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8",
"sets" : {
"rolenames" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/rolenames",
"permissions" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/permissions"
},
"collections" : {
"activities" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/activities",
"feed" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/feed",
"groups" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/groups",
"roles" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/roles",
"following" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/following",
"followers" : "/users/60fa067c-2fe5-11e1-bde6-0023145971c8/followers"
}
},
"name" : "Nuria Stewart",
"picture" : "http://www.gravatar.com/avatar/684bf9a613320590be2b3a419ad8c38a",
"username" : "jennifer"
} ],
"timestamp" : 1324919801856,
"duration" : 125
}

**AUTH USER RETRIEVAL**

INFO: 2 * Server in-bound request
2 > GET http://localhost:8001/test-app/users/jennifer
2 > accept: */*
2 > authorization: Basic amVubmlmZXI6Z2VRMWJ2ZA==
2 > host: localhost:8001
2 > connection: Keep-Alive
2 > accept-encoding: gzip,deflate

2 < 401
2 < Content-Type: application/json
2 <
{"error":"unauthorized","timestamp":1324919802251,"duration":5,"exception":"org.usergrid.rest.exceptions.SecurityException: No application access authorized","error_description":"No application access authorized"}