瀏覽代碼

put app properties in order

Grega Bremec 2 年之前
父節點
當前提交
ac1ed7605b
共有 1 個文件被更改,包括 17 次插入4 次删除
  1. 17 4
      hello/src/main/resources/application.properties

+ 17 - 4
hello/src/main/resources/application.properties

@@ -1,19 +1,32 @@
+# Core settings
+quarkus.application.name = Hello API
+
+# Dev profile settings (for mvn quarkus:dev)
 %dev.quarkus.http.port=9080
 %dev.quarkus.oidc.auth-server-url=https://localhost:8443/auth/realms/sample
+%dev.quarkus.oidc.credentials.secret=CHANGEME
+
+# Prod profile settings (for OpenShift deployment)
 quarkus.oidc.auth-server-url=https://keycloak-rhsso.apps.ocp4.example.com/auth/realms/sample
+quarkus.oidc.credentials.secret=CHANGEME
+
+# OIDC settings
 quarkus.oidc.tls.verification=none
 quarkus.oidc.client-id=sample-client
-%dev.quarkus.oidc.credentials.secret=CHANGEME
-quarkus.oidc.credentials.secret=CHANGEME
+
 # Can be service, web-app, or hybrid
 quarkus.oidc.application-type=hybrid
+
+# Calls UserInfo endpoint and adds "userinfo" attribute to SecurityIdentity
+quarkus.oidc.authentication.user-info-required=true
+
 # Code-based authorization policy. Not necessary if annotations are used.
 #quarkus.http.auth.permission.authenticated.paths=/*
 #quarkus.http.auth.permission.authenticated.policy=authenticated
+
 # May help with realmRoles mapper configuration
 #quarkus.oidc.roles.source=[idtoken,accesstoken,userinfo]
-# Calls UserInfo endpoint and adds "userinfo" attribute to SecurityIdentity
-quarkus.oidc.authentication.user-info-required=true
+
 # Access token verification
 #quarkus.oidc.token.issuer=???
 #quarkus.oidc.token.audience=??? (String or String[])