简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM