Keycloak连接被拒绝测试

时间:2018-02-12 19:02:06

标签: testing server openid-connect keycloak

Noob问题。 系统: 苹果电脑, Keycloak 3.4.3, Wildfly 11

我为OpenID Connect服务安装了Keycloak Identity Manager。我遵循了入门指南并成功链接和部署了Wildfly&香草项目。这一切都很好。

我的问题是我想针对openid.net certification testing测试Keycloak。我从管理控制台获取端点,如下所示:

[1] {"issuer":"http://localhost:8180/auth/realms/demo","authorization_endpoint":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/auth","token_endpoint":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/token","token_introspection_endpoint":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/token/introspect","userinfo_endpoint":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/userinfo","end_session_endpoint":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/logout","jwks_uri":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/certs","check_session_iframe":"http://localhost:8180/auth/realms/demo/protocol/openid-connect/login-status-iframe.html","grant_types_supported":["authorization_code","implicit","refresh_token","password","client_credentials"],"response_types_supported":["code","none","id_token","token","id_token token","code id_token","code token","code id_token token"],"subject_types_supported":["public","pairwise"],"id_token_signing_alg_values_supported":["RS256"],"userinfo_signing_alg_values_supported":["RS256"],"request_object_signing_alg_values_supported":["none","RS256"],"response_modes_supported":["query","fragment","form_post"],"registration_endpoint":"http://localhost:8180/auth/realms/demo/clients-registrations/openid-connect","token_endpoint_auth_methods_supported":["private_key_jwt","client_secret_basic","client_secret_post"],"token_endpoint_auth_signing_alg_values_supported":["RS256"],"claims_supported":["sub","iss","auth_time","name","given_name","family_name","preferred_username","email"],"claim_types_supported":["normal"],"claims_parameter_supported":false,"scopes_supported":["openid","offline_access"],"request_parameter_supported":true,"request_uri_parameter_supported":true}

当我测试动态注册或发现或其他任何东西时,我会继续:

[2] Discovery:OP-Response-Missing: status=ERROR, message=HTTPConnectionPool(host='localhost', port=8180): Max retries exceeded with url: /auth/realms/demo/.well-known/openid-configuration (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))

我知道它没有连接,但有人可以分享一些原因,因为当我手动输入http://localhost:8180/auth/realms/demo/.well-known/openid-configuration到地址栏时,我会得到正确的输出,如[1]中所示。< / p>

为什么keycloak在运行openid认证测试时拒绝连接?

感谢。

0 个答案:

没有答案