Use OpenID Connect Support with JHipster

There’s no easy way to do this. However, if you check your project into source control, it’s not too difficult. Once you have everything checked into source control, remove all your files.

rm -rf *

The .yo-rc.json file and .jhipster directory will not be deleted by this command. Modify .yo-rc.json to use oauth2 for the authentication type. Then, run:

jhipster --with-entities

When it’s finished generating, use your IDE and roll back the files (controller, services, etc) that you changed. You can watch Convert JHipster from JWT Authentication to OAuth 2.0 / OIDC Authentication in 10 Minutes to see how this works.

1 Like