quarkus

Quarkus HTTPS restful service

别来无恙 提交于 2020-08-21 19:51:01
问题 Is there any example/tutorial to build and configure TLS-secured restful service using quarkus.io? Unfortunately I can not find one neither at quarkus documentation, no here. 回答1: It is indeed supported by our Undertow extension but, unfortunately, not documented. You can define things like the following: quarkus.http.ssl.certificate.file=... quarkus.http.ssl.certificate.key-file=... ... in your application.properties. The config entry point is ServerSslConfig (see https://github.com

Quarkus HTTPS restful service

无人久伴 提交于 2020-08-21 19:50:43
问题 Is there any example/tutorial to build and configure TLS-secured restful service using quarkus.io? Unfortunately I can not find one neither at quarkus documentation, no here. 回答1: It is indeed supported by our Undertow extension but, unfortunately, not documented. You can define things like the following: quarkus.http.ssl.certificate.file=... quarkus.http.ssl.certificate.key-file=... ... in your application.properties. The config entry point is ServerSslConfig (see https://github.com

IDEA 2020.2 稳定版发布,带来了不少新功能...

…衆ロ難τιáo~ 提交于 2020-08-11 07:05:45
IntelliJ IDEA 2020.2 稳定版已发布,此版本带来了不少新功能,包括支持在 IDE 中审查和合并 GitHub PR、新增加的 Inspections 小组件(Inspections Widget)支持在文件的警告和错误之间快速导航、使用 Problems 工具窗口查看当前文件中的完整问题列表,并在更改会破坏其他文件时收到通知。 此外还有针对部分框架和技术的新功能,包括支持使用 Jakarta EE 9 以及改进对 Quarkus, Micronaut, Amazon SQS API 和 OpenAPI 的支持(适用于旗舰版)。 新版下载地址: https://www.jetbrains.com/idea/download Java 支持 Java 15:更新对 Records 功能的支持,还增加了对 Sealed 类的基本支持。当然也提供了对文本块(Text Blocks)的全面支持 来源: oschina 链接: https://my.oschina.net/u/4399511/blog/4480242

How can I add an http interceptor to a Quarkus application?

血红的双手。 提交于 2020-08-08 06:10:11
问题 I would like to add an HTTP interceptor to my Quarkus application so I can intercept all HTTP requests. How can such that be achieved? 回答1: Quarkus uses RESTEasy as its JAX-RS engine. That means that you can take advantage of all of RESTEasy's features, including Filters and Interceptors. For example to create a very simple security mechanism, all you would need to do is add code like the following: @Provider public class SecurityInterceptor implements ContainerRequestFilter { @Override

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.

How can I override properties in Quarkus?

心不动则不痛 提交于 2020-08-07 08:17:09
问题 I would like to override the properties I have configured in my configuration file in my Quarkus application. How can I accomplish that? 回答1: Properties in Quarkus are generally configured in src/main/resources/application.properties . This is true both for properties that configure the behavior of Quarkus (like the http port it listens to or the database URL to connect to for example) and properties that are specific to your application (for example a greeting.message property). The