Questions tagged [microprofile]

The Eclipse MicroProfile project defines a programming model for developing microservice applications in an Enterprise Java environment.

The Eclipse MicroProfile project is a CDI-first approach to building microservice applications and supported by both community and Java application server vendors. There are a number of active projects within MicroProfile, which can be viewed at the official website.

296 questions
0
votes
1 answer

How to use @IdToken in Quarkus Apps when application-type=service?

I can access @IdToken when running this Quarkus guide: https://quarkus.io/guides/security-openid-connect-web-authentication. It uses "quarkus.oidc.application-type=web-app". However when I try to access @IdToken in this other Quarkus guide…
Niklas Heidloff
  • 952
  • 6
  • 13
0
votes
1 answer

Rename endpoint /openapi and /openapi/ui

The API documentation created using OpenAPI is usually called using the endpoints /openapi (YAML) or /openapi/ui (Frontend). How can I rename these endpoints for that I can call e.g. /myappapi and /myappapi/ui respectively? (OpenAPI 3)
0
votes
1 answer

Micro profile client returns null

I have created a simple eclipse microprofile service runs in openliberty. My client file is like this. @RegisterRestClient(configKey = "ra-api") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public interface MyClient…
Randi
  • 639
  • 2
  • 6
  • 23
0
votes
0 answers

OpenAPI does not scan external libraries?

I am building a microservice with eclipse-microprofile 3 and I am using openapi. Services and XMLRoot classes defined directly in my service are published to openapi (as expected). But my service includes also additional jar files located under…
Ralph
  • 4,500
  • 9
  • 48
  • 87
0
votes
2 answers

How to debug kubernetes deployed service using Eclipse

I have a micro service written using Java EE + Openliberty. I have deployed this into kubernetes in my Docker-Desktop. I want to know, is there any way to debug this deployed service? I am using Eclipse. Please let me know how can I debug deployed…
Randi
  • 639
  • 2
  • 6
  • 23
0
votes
1 answer

"dev" config overrides "test" config in Quarkus

In my Quarkus application, I don't want passwords to be versionned by Git. I don't have any issue with the prod profile because I have a config file in $PWD/config/application.properties. Fine. For the dev profile, I'm using the .env approach which…
0
votes
1 answer

Open Liberty inside Eclipse: publishing results in an JMX connection error

I configured the Open Liberty server inside Eclipse 2020-03 using the Eclipse Developer Tools from https://openliberty.io/downloads/#eclipse_developer_tools. I can add my .war project and start the server without problem, but publishing on the…
0
votes
1 answer

How to configure a livenessProbe in Kubernetes based Eclipse Microprofile

I am running a rest service based on Eclipse Microprofile. My service provides a health check. The result of such a health check (which is providing a lot of information) looks for example like this: http://localhost:9990/health HTTP=OK { …
Ralph
  • 4,500
  • 9
  • 48
  • 87
0
votes
1 answer

Dependency injection does not work in RestClientBuilderListener

I followed the rest client guide in Quarkus web site. It works fine. But when registering a global provider using the ServiceLoader pattern, as described in the specification, the CDI beans injection did not work, they are all null. I downloaded the…
AmsterdamLuis
  • 341
  • 3
  • 21
0
votes
2 answers

How to authenticate MicroProfile REST Client calls with OAuth?

In my server application, I want to consume some third party API using a MicroProfile REST client. To do so, I need to send an Authorization Header with a bearer token. I don't want to always get a token before I make any call so I need a mechanism…
xxtesaxx
  • 6,175
  • 2
  • 31
  • 50
0
votes
0 answers

Quarkus config sources are loaded and invoked multiple times

We are trying to implement custom org.eclipse.microprofile.config.spi.ConfigSource implementation for AWS Systems Manager Parameter Store(SSM) Everything works well, but we noticed that configSources are created and invoked 3 times and 3 calls are…
0
votes
2 answers

Quarkus Vertx timeout in JWT autorization phase in POST request upload file

I'm building a project based on quarkus and microprofile with the following extensions: rest-client,health, resteasy-jsonb, metrics, openapi,fault,jdbc-postgres,hibernate-orm,jwt,mongodb-client,kotlin,resteasy-jsonb. In one of the REST Resources I…
Javier Toja
  • 1,630
  • 1
  • 14
  • 31
0
votes
1 answer

Securing eclipse-microprofile metrics and health end points

I am using Quarkus to build a REST API. I have enabled the MicroProfile Health endpoints following https://quarkus.io/guides/microprofile-health I would like to know how to secure or reduce the visibility of the :8080/health endpoints so that it…
bobby
  • 2,629
  • 5
  • 30
  • 56
0
votes
1 answer

Quarkus: Custom JSON logging format

I'm using the quarkus-logging-json artifact. Is there a way to add custom fields in the json logs?
overthetop
  • 1,664
  • 2
  • 15
  • 25
0
votes
3 answers

Securing typesafe microprofile RestClientBuilder with Keycloak

I have the following Setup: Keycloak 9.0.0 running on port 8180 Spring Boot server application running on port 8080 Demo client application using CxfTypeSafeClientBuilder to access server service The Keycloak - Spring Boot interaction is working…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91