简体   繁体   English

通用的openid -connect客户端库(server-keycloak)

[英]Generic openid -connect client libraries (server-keycloak)

Keycloak is my OpenID Connect Provider. Keycloak是我的OpenID Connect提供商。 My legacy application which uses a local authentication mechanism now needs to be upgraded to use the standard OpenId Connect. 我的使用本地身份验证机制的旧版应用程序现在需要升级以使用标准的OpenId Connect。 I use Jboss 5 as the application server on which my legacy applications are deployed. 我将Jboss 5用作部署旧应用程序的应用程序服务器。 The legacy application uses java 6 which is another reason, I cannot use keycloak client library directly. 旧版应用程序使用Java 6,这是另一个原因,我无法直接使用keycloak客户端库。

From the official documentation it seems that (client) support for JBoss 5 does not exist. 官方文档看来,对JBoss 5的(客户端)支持似乎不存在。 I would therefore like to use a library to do the work for me. 因此,我想使用图书馆为我完成工作。 Any recommendations on the libraries? 对图书馆有什么建议吗? I dont find a lot of examples out there on the web. 我在网络上找不到很多示例。

Also, is there any need for client libraries at all, since there are REST API's exposed which I can consume directly? 另外,由于有我可以直接使用的REST API,因此根本不需要客户端库吗?

您可以检查keycloak-admin-client ,它使用Keycloak REST API连接到KeyCloak服务器。

I had to finally settle for google's client API. 我最终不得不适应Google的客户端API。

The support for openID connect is still Beta and there has not been an update to the library for the past nine months. 对openID connect的支持仍为Beta,并且在过去的9个月中未对该库进行更新。 So had to directly parse the JWT tokens instead of the library doing the work for me. 因此必须直接解析JWT令牌,而不是由库来为我完成工作。 The library can be used with JAVA 5 and above which is a big plus for legacy applications. 该库可与JAVA 5及更高版本一起使用,这对遗留应用程序来说是一个很大的优势。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM