Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
181 views
in Technique[技术] by (71.8m points)

Enable Https in JHipster Project which Uses KeyCloak

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...