vert.x

Quarkus Rest Client and OAuth2

我与影子孤独终老i 提交于 2020-08-07 17:46:19
问题 I have a secured micro service that is calling another secured micro service. Both services have service accounts in Keycloak. How can I configure the 1st service to automatically obtain access token from keycloak when calling the 2nd service? It's a simple service to service communication. Does the Quarkus Rest client have an API to do this? If not, how can I do that with the vert.x rest client? 回答1: I was able to make this work by extending the javax.ws.rs.client.ClientRequestFilter.

Quarkus Rest Client and OAuth2

大憨熊 提交于 2020-08-07 17:45:16
问题 I have a secured micro service that is calling another secured micro service. Both services have service accounts in Keycloak. How can I configure the 1st service to automatically obtain access token from keycloak when calling the 2nd service? It's a simple service to service communication. Does the Quarkus Rest client have an API to do this? If not, how can I do that with the vert.x rest client? 回答1: I was able to make this work by extending the javax.ws.rs.client.ClientRequestFilter.

Quarkus Rest Client and OAuth2

断了今生、忘了曾经 提交于 2020-08-07 17:43:16
问题 I have a secured micro service that is calling another secured micro service. Both services have service accounts in Keycloak. How can I configure the 1st service to automatically obtain access token from keycloak when calling the 2nd service? It's a simple service to service communication. Does the Quarkus Rest client have an API to do this? If not, how can I do that with the vert.x rest client? 回答1: I was able to make this work by extending the javax.ws.rs.client.ClientRequestFilter.

Quarkus Rest Client and OAuth2

≡放荡痞女 提交于 2020-08-07 17:42:43
问题 I have a secured micro service that is calling another secured micro service. Both services have service accounts in Keycloak. How can I configure the 1st service to automatically obtain access token from keycloak when calling the 2nd service? It's a simple service to service communication. Does the Quarkus Rest client have an API to do this? If not, how can I do that with the vert.x rest client? 回答1: I was able to make this work by extending the javax.ws.rs.client.ClientRequestFilter.

Java common JDBC SQL Query strategy for Unit Test using HSQLDB and runtime using MySQL

孤人 提交于 2020-07-23 06:51:07
问题 I am developing Java Vert.x 3 application. I use HSQLDB for testing with in-memory DB and MySQL 8.0.20 for runtime. When the vertx verticle is deployed, it initializes the db and tables. Since this is a common code and there are differing SQL syntax between HSQLDB and MySQL and more ridiculously, the HSQLDB capitalizes all the property names and I have to double-quote the properties to use lower-case. I wonder how to achieve this. Here are my questions: (1) HSQLDB uses "IDENTITY" keyword for

Java common JDBC SQL Query strategy for Unit Test using HSQLDB and runtime using MySQL

≡放荡痞女 提交于 2020-07-23 06:50:07
问题 I am developing Java Vert.x 3 application. I use HSQLDB for testing with in-memory DB and MySQL 8.0.20 for runtime. When the vertx verticle is deployed, it initializes the db and tables. Since this is a common code and there are differing SQL syntax between HSQLDB and MySQL and more ridiculously, the HSQLDB capitalizes all the property names and I have to double-quote the properties to use lower-case. I wonder how to achieve this. Here are my questions: (1) HSQLDB uses "IDENTITY" keyword for