piomin / sample-vertx-microservices

Two applications in different branches illustrates how to create asynchronous microservices with Vert.x, Consul and MongoDB, and how to secure them with Vert.x OAuth2 module and Keycloak
https://piotrminkowski.com/
49 stars 19 forks source link

OAuth2FlowType.PASSWORD with OAuth2AuthHandler not working #1

Open sashikaxp opened 6 years ago

sashikaxp commented 6 years ago

OAuth2FlowType.PASSWORD type does not work with OAuth2AuthHandler in vertx 3.5.0. It requires AUTH_CODE type

waytoharish commented 5 years ago

Same issue with me.Getting below error- SEVERE: OAuth2Auth + Bearer Auth requires OAuth2 AUTH_CODE flow java.lang.IllegalArgumentException: OAuth2Auth + Bearer Auth requires OAuth2 AUTH_CODE flow at io.vertx.ext.web.handler.impl.OAuth2AuthHandlerImpl.verifyProvider(OAuth2AuthHandlerImpl.java:60) at io.vertx.ext.web.handler.impl.OAuth2AuthHandlerImpl.(OAuth2AuthHandlerImpl.java:77) at io.vertx.ext.web.handler.OAuth2AuthHandler.create(OAuth2AuthHandler.java:42) at pl.piomin.services.vertx.account.AccountServer.start(AccountServer.java:56) at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:106) at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:494) at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:320) at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)