在使用KeyCloak的JHipster项目中启用Https [英] Enable Https in JHipster Project which Uses KeyCloak

查看:402
本文介绍了在使用KeyCloak的JHipster项目中启用Https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类似的问题,我写得不好,所以现在我希望以更清晰的方式提出这个问题:我已经使用Jhipster和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".

我的问题是,我应该怎么做才能使https现在起作用?由于keycloak是嵌入"在jhipster中的,所以我几乎只有keycloak.yml,application.yml和一些可以使用的配置文件.有人遇到过相同或相似的问题吗?任何帮助将不胜感激.谢谢!

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!

推荐答案

不确定我的帖子为何被否决.我问了一个类似的问题,但是那个问题写得不好,不能让读者明白这个问题的确切含义.因此,我以我认为更清楚的方式写了这个问题.在我看来,这是一个很好的问题,因为Jhipster使用Keycloak,但是现在大多数教程仅讨论如何获取项目http,而不是https.而且,关于https的Keycloak教程仅在您安装和维护独立的Keycloak服务器时才适用,与Jhipter不同,后者具有Keycloak的bin,仅允许我们使用keycloak.yml.而且,如果我们能弄清楚如何在这一个上执行https,它将对同时使用Jhipster和应用Keycloak的其他人有所帮助.

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.

这篇关于在使用KeyCloak的JHipster项目中启用Https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆