jhipster登录页面未显示0auth 2.0

时间:2018-06-26 11:59:32

标签: spring-boot oauth-2.0 jhipster

Jhipster 5.0.1中,选择了0auth2.0时,单击登录按钮时出现错误页面。下拉菜单中的注册按钮不显示。它与JWT身份验证可以正常工作,这使我认为还需要设置0auth2.0身份验证。有人设置过吗?

我的项目也出现此错误:

Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers, failedMessage=GenericMessage [payload=byte[50], headers={contentType=application/json, id=d9a00faa-0923-c5ba-149b-0439cbe91291, timestamp=1530014266697}]
    at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:138)
    at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:105)
    at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:73)

但我认为这无关。

1 个答案:

答案 0 :(得分:3)

您需要先启动Keycloak,然后才能登录。

docker-compose -f src/main/docker/keycloak.yml up

或者您可以注册Okta developer account并配置设置以使用它。有关更多信息,请参见JHipster's security documentation