Enable Https in JHipster Project which Uses KeyCloak

故事扮演 提交于 2019-12-25 18:28:47

问题


I have a similar question, which was poorly written by me and so now I put the question in a clearer way hopefully: I have generated a project using Jhipster and Keycloak (follow this tutorial: https://developer.okta.com/blog/2018/06/25/react-spring-boot-photo-gallery-pwa). It works fine until I want to turn on https. So say in the keycloak admin panel, I choose 'all request need https'. And then when I login, I get an error page saying "https required".

My question is, what exactly should I do to make https works now? Since keycloak is 'embedded' in jhipster, so I pretty much only have keycloak.yml, application.yml and a few configuration files I can play with. Anyone got into the same or similar issue before? Any help will be appreciated. Thanks!


回答1:


Not sure why my post is down voted. I asked a similar question, but that one was poorly written and cannot let the reader get what the question is precisely. So I write this question in a more clear way as I think. And this is a good question in my opinions, because Jhipster uses Keycloak, but most tutorials now only talk about how to get the project http, not https. And Keycloak tutorial about https only applies if you installs and maintains a standalone Keycloak server, not like Jhipter which has the bin of Keycloak and only allows us to play with the keycloak.yml. And if we can figure out how to do https on this one, it will help others who are also using Jhipster and applying Keycloak.

I cann't think of any reason that may down vote this post. If there is, please let me know and I can learn.



来源:https://stackoverflow.com/questions/59276409/enable-https-in-jhipster-project-which-uses-keycloak

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!