Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 20:24
    greenkeeper[bot] labeled #383
  • Aug 22 20:24
    greenkeeper[bot] opened #383
  • Aug 22 20:23

    greenkeeper[bot] on semantic-release-15.13.24

    chore(package): update semantic… (compare)

  • Aug 14 08:37

    ghaiklor on cz-conventional-changelog-3.0.1

    (compare)

  • Aug 14 08:37

    ghaiklor on cz-conventional-changelog-3.0.2

    (compare)

  • Aug 14 08:37

    ghaiklor on print-message-3.0.1

    (compare)

  • Aug 14 08:37

    ghaiklor on semantic-release-15.13.21

    (compare)

  • Aug 14 08:37

    ghaiklor on coveralls-3.0.6

    (compare)

  • Aug 14 08:37
    ghaiklor closed #382
  • Aug 14 08:36

    ghaiklor on semantic-release-15.13.19

    (compare)

  • Aug 14 08:36
    ghaiklor closed #381
  • Aug 14 08:36

    ghaiklor on print-message-3.0.0

    (compare)

  • Aug 14 08:36

    ghaiklor on dev

    fix(package): update print-mess… Merge pull request #380 from gh… (compare)

  • Aug 14 08:36
    ghaiklor closed #380
  • Aug 14 08:36

    ghaiklor on cz-conventional-changelog-3.0.0

    (compare)

  • Aug 14 08:36

    ghaiklor on dev

    chore(package): update cz-conve… Merge pull request #379 from gh… (compare)

  • Aug 14 08:36
    ghaiklor closed #379
  • Aug 14 08:36

    ghaiklor on mocha-6.2.0

    (compare)

  • Aug 14 08:36

    ghaiklor on dev

    chore(package): update mocha to… Merge pull request #378 from gh… (compare)

  • Aug 14 08:36
    ghaiklor closed #378
Russ Savage
@savager
I think I was just misunderstanding the entire idea of how the JWT strategy was working. Please be gentle as I'm just learning this. But I thought access token was different than the actual JWT being verified. I thought access_token was a different identifier to make sure your front end was the one hitting the API. Unrelated to authentication per user. But it seems that in this repo access_token is just a fallback method from v1 of that authentication stratgey?
John-Henry Liberty
@jhliberty
It sounds like you are thinking of a CSRF token @savager
Russ Savage
@savager
Yeah, either way api key or csrf it's not a jwt
I'm good now, have it authenticat
Ing through header. Thanks
Eugene Obrezkov
@ghaiklor
@savager Ive merged PR recently with migration to new version
Seems problem is here
ghaiklor/generator-sails-rest-api#210
Wicked0ne
@Wicked0ne
Hey all. I can create a new user by hitting /v1/auth/signup but no matter what I do, sending a post to any other endpoint results in "No auth token". http://puu.sh/nQvz3/778f36ea28.png
Any ideas on what I'm doing wrong?
Wicked0ne
@Wicked0ne
Weird, digging a little more. If I send a post to /v1/docs with NO headers, but instead add a body parameter of "access_token" with no Bearer prefix it works.
Eugene Obrezkov
@ghaiklor
@Wicked0ne is that issue ? ghaiklor/generator-sails-rest-api#224
BAlex
@BraunreutherA
It's pretty simple: passport gives an null error if the token is empty but info with a string so in negotiate you have an error with no error code which leads to 500 error
CHOIX
@Zaniyar
how can I add a view layer to my project?
@ghaiklor is it possible to output html for some endpoints instead of json?
Eugene Obrezkov
@ghaiklor
@Zaniyar view layer was removed because it's a REST API with JSON endpoints
you can enable view hook in .sailsrc file
CHOIX
@Zaniyar
yes I know, but I wanted for some endpoints that the browser renders a view - that should be possible?
Eugene Obrezkov
@ghaiklor
yes
you can enable view hook in .sailsrc file
CHOIX
@Zaniyar
ok I'll try
thank you!
CHOIX
@Zaniyar
Is there somewhere a tutorial(with user authentification) for a small project with generator-sails-rest-api ?
Eugene Obrezkov
@ghaiklor
CHOIX
@Zaniyar
I gave up, maybe have to learn litte bit more about the "normal" sails, and will come back much later to this
Luke Boening
@lboening
I am looking to add Hypermedia routes. Is this feasible?
Petr
@vystydp
@ghaiklor please can u help with #290, which version of npm and node do you have ?
Eugene Obrezkov
@ghaiklor
@vystydp hi
Mac OS Sierra
~  node -v
v6.6.0
 ~  npm -v
3.10.3
 ~ 
Dung-Nguyen
@Dung-Nguyen
Hi, i'm newbie. I need use permission in generator-sails-rest-api. Which's lib i can use?
Eugene Obrezkov
@ghaiklor
@Dung-Nguyen you can use any lib you found on npm
Dung-Nguyen
@Dung-Nguyen
Thank for reply, i use sails-permission and sails-auth, when run "npm start" error with passport Strategy is not contructor. How i can fix it?
Eugene Obrezkov
@ghaiklor
Some libs on passport can export Strategy, some are not
you need to follow a stack-trace and remove requiring Strategy and leave just require('pacckage-name')
Jorge Andres Moreno Jaimes
@jamper91
Excuseme guys, how i can update to sailsjs v1.0? I need transations
khelkun
@khelkun
Hello I've generated the app and the routes auth/signup auth/signin work fine (http response is ok in postman) and config/connections.js has a mongo config that hits my localhost mongodb and config/models.js uses the mongo conneciton. But I'm confused because sails-rest-api database doesn't exists in my localhost mongodb server
khelkun
@khelkun
nevermind apparently it registered the user into .tmp/disk.db
Eugene Obrezkov
@ghaiklor
@khelkun could be some error in your config
so Sails registered database as local
khelkun
@khelkun
yes the config/env/development.js overrides the models connection with 'disk'
thanks
khelkun
@khelkun
may I ask where should I look for documentation to know how to access the swagger http://localhost:3000/v1/Docs/"? If I open this page it says "no auth token". I see some 'your-*' values in initOAuth inside explorer/index.html but I don't know what to do. Plus may be I have to do something in config/swagger.js?
khelkun
@khelkun
nevermind I think I found it
ghaiklor/generator-sails-rest-api#148
Hodor9898
@Hodor9898
I tried upgrading to sails v1.0, the blueprints folder does not seem to override the basic sails blueprint actions, what do i do?
the swagger hook also doesn't work in v1.0
moda20
@moda20
hey I am having problems with the dependencies after installing, can.i get the list of dependencies so that I install them all in one take ?
Thirumurthy
@thirumurthy
Anyone knows about configuration of middleware passport js in sails 1.0