Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 533
San Avatar asked Feb 13 '16 05:02

San


1 Answers

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

like image 69
Gaël Marziou Avatar answered Oct 16 '22 15:10

Gaël Marziou