Browse Source

put app properties in order

Grega Bremec 2 năm trước cách đây
mục cha
commit
ac1ed7605b

+ 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.http.port=9080
 %dev.quarkus.oidc.auth-server-url=https://localhost:8443/auth/realms/sample
 %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.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.tls.verification=none
 quarkus.oidc.client-id=sample-client
 quarkus.oidc.client-id=sample-client
-%dev.quarkus.oidc.credentials.secret=CHANGEME
+
-quarkus.oidc.credentials.secret=CHANGEME
 # Can be service, web-app, or hybrid
 # Can be service, web-app, or hybrid
 quarkus.oidc.application-type=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.
 # Code-based authorization policy. Not necessary if annotations are used.
 #quarkus.http.auth.permission.authenticated.paths=/*
 #quarkus.http.auth.permission.authenticated.paths=/*
 #quarkus.http.auth.permission.authenticated.policy=authenticated
 #quarkus.http.auth.permission.authenticated.policy=authenticated
+
 # May help with realmRoles mapper configuration
 # May help with realmRoles mapper configuration
 #quarkus.oidc.roles.source=[idtoken,accesstoken,userinfo]
 #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
 # Access token verification
 #quarkus.oidc.token.issuer=???
 #quarkus.oidc.token.issuer=???
 #quarkus.oidc.token.audience=??? (String or String[])
 #quarkus.oidc.token.audience=??? (String or String[])