如何解决“所需的机制'BASIC'在来自HttpAuthenticationFactory的机制[KEYCLOAK]中不可用". [英] How To Resolve "The required mechanism 'BASIC' is not available in mechanisms [KEYCLOAK] from the HttpAuthenticationFactory"

查看:121
本文介绍了如何解决“所需的机制'BASIC'在来自HttpAuthenticationFactory的机制[KEYCLOAK]中不可用".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试部署keycloak-quickstart app-profile-jee-vanilla项目时,我遇到了一条错误消息.一点网页搜索都没有提供解决方案,所以我想在这里问.

When I tried to deploy the keycloak-quickstart app-profile-jee-vanilla project, I ran into an error message. A bit of web searching did not provide a resolution, so I thought to ask here.

这是我遵循的步骤.涉及三个bash shell.

Here are the steps that I followed. Three bash shells are involved.


curl -O -L https://downloads.jboss.org/keycloak/4.1.0.Final/keycloak-4.1.0.Final.tar.gz
tar xvfz keycloak-4.1.0.Final.tar.gz
./keycloak-4.1.0.Final/bin/standalone.sh -Djboss.socket.binding.port-offset=100


野生壳


curl -O -L http://download.jboss.org/wildfly/11.0.0.Final/wildfly-11.0.0.Final.tar.gz
curl -O -L https://downloads.jboss.org/keycloak/4.1.0.Final/adapters/keycloak-oidc/keycloak-wildfly-adapter-dist-4.1.0.Final.tar.gz
tar xvfz wildfly-11.0.0.Final.tar.gz
cd wildfly-11.0.0.Final
tar xvfz ../keycloak-wildfly-adapter-dist-4.1.0.Final.tar.gz
cd bin
./jboss-cli.sh --file=adapter-elytron-install-offline.cli
cd ../..
./wildfly-11.0.0.Final/bin/standlone.sh


快速启动外壳


git clone https://github.com/keycloak/keycloak-quickstarts
cd keycloak-quickstarts/app-profile-jee-vanilla
mvn clean wildfly:deploy

经过几分钟的编译,我看到了所需的机制'BASIC'在HttpAuthenticationFactory的机制[KEYCLOAK]中不可用"消息.

After a few minutes of compiling and such I see the "The required mechanism 'BASIC' is not available in mechanisms [KEYCLOAK] from the HttpAuthenticationFactory" message.

有人可以指出我要解决此问题的方向吗?

Can someone point me in the direction to resolve this issue?

推荐答案

正如我现在看到的,问题在于elytron适配器已经安装并且不应该安装.我删除了Wildfly目录.然后解压缩tgz文件.在没有进行任何其他配置的情况下,我启动了Wildfly服务器.服务器启动后,wildfly:deploy maven命令开始工作.

The problem, as I now see, is that the elytron adapter was installed and it should not have been. I removed the Wildfly directory. Then un-tarred the tgz file. Without doing any other configuration, I started the Wildfly server. After the server started, the wildfly:deploy maven command worked.

这篇关于如何解决“所需的机制'BASIC'在来自HttpAuthenticationFactory的机制[KEYCLOAK]中不可用".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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