hackers4peace / plp-provider

Definitions and reference implementation for Provider working with PLP
provider.plp.hackers4peace.net
1 stars 1 forks source link

Persona + Provider hosting leads to 403 on /auth/login #20

Open almereyda opened 9 years ago

almereyda commented 9 years ago

After creating a profile as of

"Profile stored in localStorage {"type":"Person","name":"yourself","description":"","birthDate":"","nationality":"","website":"","image":"","address":{"streetAddress":"","postalCode":"","addressLocality":"","addressCountry":""},"memberOf":[],"sameAs":[],"interest":[],"@context":"http://ld.hackers4peace.net/contexts/plp.jsonld","describedBy":{"plp:prototype":{"git:tag":"v0.1.0"}}}"
 app.js:304:4
GET 
https://login.persona.org/communication_iframe [HTTP/1.1 200 OK 114ms]
"error" Error: cannot POST http://profiles.allmende.io/provider/auth/login (403)
Stack-Trace:
Response.prototype.toError@http://profiles.allmende.io/bower_components/superagent/superagent.js:818:13
Response.prototype.setStatusProperties@http://profiles.allmende.io/bower_components/superagent/superagent.js:792:7
Response@http://profiles.allmende.io/bower_components/superagent/superagent.js:694:3
Request/<@http://profiles.allmende.io/bower_components/superagent/superagent.js:849:15
Emitter.prototype.emit@http://profiles.allmende.io/bower_components/superagent/superagent.js:337:7
Request.prototype.end/xhr.onreadystatechange@http://profiles.allmende.io/bower_components/superagent/superagent.js:1250:5
 app.js

I have the slight impression master is currently not deployable.

Running the server gives me the following clues, thanks to the tests:

[web39@maya plp-provider]$ npm start

> plp-provider@0.0.1 start /var/www/clients/client4/web39/private/plp-provider
> gulp

[00:38:51] Using gulpfile ~/plp-provider/gulpfile.js
[00:38:51] Starting 'server:start'...
[00:38:51] Starting 'test'...
[00:38:51] Starting 'less'...
[00:38:51] Starting 'watch:daemon'...
[00:38:51] Finished 'watch:daemon' after 16 ms
[00:38:51] Starting 'watch:test'...
[00:38:51] Finished 'watch:test' after 2.97 ms
[00:38:51] Starting 'watch'...
[00:38:51] Finished 'watch' after 12 μs

  auth
[00:38:52] Development server listening. (PID:5126)
[00:38:52] Finished 'server:start' after 1.52 s
listening on:  11000
    login
      - should respond with a token
    logout
      - should invalidate token

@elf-pavlik @acorbi May it be Persona + JWT are not completely implemented, yet?

almereyda commented 9 years ago

Therefore http://profiles.allmende.io can be considered down for now :frowning: