Jhipster with JWT authentication integration with okta

359 views Asked by At

I have created an application with JWT authentication. I want to integrate with OKTA. Just to gain knowledge I have created a sample application with oauth authentication and was able to successfully integrate with okta.

Now I would like to integrate the already application with JWT authentication with OKTA. Please suggest me how to integrate with okta

Thanks

1

There are 1 answers

2
Matt Raible On

You cannot integrate a JHipster app that uses JWT authentication with Okta. You have to use OAuth / OIDC as your authentication mechanism. One thing you could try is:

  1. Make sure your JWT app is checked into source control (for example, a local Git repo).
  2. Run rm -rf in your JWT app to delete all the files (this will delete everything, but keep your .yo-rc.json file and .jhipster directory).
  3. Modify .yo-rc.json to change authenticationType to oauth2.
  4. Run jhipster --with-entities to re-create your application with OAuth 2.0 for login.

Hope this helps!