Search code examples
javaspringjhipsterspring-websocket

How to change authentication type in jhipster created application


I have created my project which required spring web socket using Jhipster with Token based authentication. Lately I found that Token based authentication does not work with spring web socket from here. How to change authentication type without recreating application from beginning?


Solution

  • Copy the .yo-rc.json file from your project to a new directory, edit it to change the value of the authenticationType property to "session" or "oauth2", and then run jhipster, this will re-generate your app without asking the questions. You can then compare with your project and update it accordingly.

    If you want to re-create your entities, you can copy the .jhipster folder and re-generate your project using jhipster --with-entities