Git Product home page Git Product logo

Comments (7)

hadirsa avatar hadirsa commented on July 19, 2024

@amanganiello90, I start to do this task. thanks.

from generator-jhipster-nodejs.

 avatar commented on July 19, 2024

@hadirsa, I have just modified and implemented an app for us example app.
In this project, that it had jwt and nestJS swagger integration, I have added the new DTS and replaced sequelize orm with TypeORM including sqlite instead of Postgres. But now the jwt authentication doesn't work. If you want to fix it, you are welcome, otherwise now it's more important a session authentication and manage the build and running in jhipster. Thanks

from generator-jhipster-nodejs.

hadirsa avatar hadirsa commented on July 19, 2024

@amanganiello90, I'll check it and inform you about the changes, I have tried to generate server part with our own structure. it persists on creating with maven structure. Do I need to change this.SERVER_MAIN_SRC_DIR = constants.SERVER_MAIN_SRC_DIR; or something?
I didn't find any document about this.

from generator-jhipster-nodejs.

hadirsa avatar hadirsa commented on July 19, 2024

@amanganiello90 , jwt authentication doesn't work., I have checked. it's working, I have registered a user, I have created a post and get all posts.
could please tell more about the error?
response to my login for a new user in postman :

{
    "id": "d3c168ba-f0fc-467b-94a1-38008a4d2989",
    "email": "[email protected]",
    "firstName": "hadirsa",
    "lastName": "raso",
    "gender": null,
    "birthday": null,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGFhLmNvbSIsImlhdCI6MTU2NTk3Nzg0NX0.A_eU2BSk2U4Q1_gguxeSWoKo_wjZiPMcE7c4OJOLM_A"
}

from generator-jhipster-nodejs.

 avatar commented on July 19, 2024

@hadirsa, for the server directory we have not decided yet. Instead, for the example project, I had created a user using the swagger ui server on localhost:3000/docs using your request. Then I have added the previous token received in the request header (bearer "token") calling the users get (that is protected), as explained in: https://docs.nestjs.com/recipes/swagger#authentication

from generator-jhipster-nodejs.

 avatar commented on July 19, 2024

Hi @hadirsa ,
@ivangsa with #21 has resolved the issue. Thanks a lot.

from generator-jhipster-nodejs.

hadirsa avatar hadirsa commented on July 19, 2024

Hi @amanganiello90, good to hear, thanks @ivangsa, I was in the middle of the task. so I can switch to another one.

from generator-jhipster-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.