2.6. Configure the application
Configure the Quarkus OpenID Connect (OIDC) extension by setting the following configuration properties in the
src/main/resources/application.propertiesfile.%prod.quarkus.oidc.auth-server-url=http://localhost:8180/realms/quarkus quarkus.oidc.client-id=backend-service quarkus.oidc.credentials.secret=secret # Tell Dev Services for Keycloak to import the realm file # This property is not effective when running the application in JVM or native modes quarkus.keycloak.devservices.realm-path=quarkus-realm.json
Where:
-
%prod.quarkus.oidc.auth-server-urlsets the base URL of the OpenID Connect (OIDC) server. The%prod.profile prefix ensures thatDev Services for Keycloaklaunches a container when you run the application in development (dev) mode. For more information, see the Run the application in dev mode section. -
quarkus.oidc.client-idsets a client id that identifies the application. -
quarkus.oidc.credentials.secretsets the client secret, which is used by theclient_secret_basicauthentication method.
For more information, see the Quarkus OpenID Connect (OIDC) configuration properties guide.