Skip to content

Commit

Permalink
[fixes quarkusio#2422] - policy-enforcer should be disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroigor committed May 13, 2019
1 parent 64e4e91 commit 8153bc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/src/main/asciidoc/keycloak-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ quarkus.keycloak.auth-server-url=http://localhost:8180/auth
quarkus.keycloak.resource=backend-service
quarkus.keycloak.bearer-only=true
quarkus.keycloak.credentials.secret=secret
quarkus.keycloak.policy-enforcer.enable=true
quarkus.keycloak.policy-enforcer.enforcement-mode=PERMISSIVE
----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public static class KeycloakConfigPolicyEnforcer {
/**
* Specifies how policies are enforced.
*/
@ConfigItem(name = "enable", defaultValue = "true")
@ConfigItem(name = "enable", defaultValue = "false")
boolean enable;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ quarkus.keycloak.realm=quarkus
quarkus.keycloak.resource=quarkus-app
quarkus.keycloak.bearer-only=true
quarkus.keycloak.credentials.secret=secret
quarkus.keycloak.policy-enforcer.enable=true
quarkus.keycloak.policy-enforcer.enforcement-mode=PERMISSIVE
quarkus.keycloak.policy-enforcer.lazy-load-paths=true
quarkus.keycloak.policy-enforcer.claim-information-point.claims.global-claim=global-claim
Expand All @@ -22,4 +23,4 @@ quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.claims.use
quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.url=http://localhost:8081/api/users/me
quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.method=GET
quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.headers.Content-Type=application/x-www-form-urlencoded
quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.headers.Authorization=Bearer {keycloak.access_token}
quarkus.keycloak.policy-enforcer.paths.3.claim-information-point.http.headers.Authorization=Bearer {keycloak.access_token}

0 comments on commit 8153bc5

Please sign in to comment.