logger:
level: DEBUG
swarm:
context:
path: foo
keycloak:
realms:
foo-keycloak-example:
auth-server-url: http://localhost:9090/auth
ssl-required: external
bearer-only: true
deployment:
foo.war:
web:
login-config:
auth-method: KEYCLOAK
security-constraints:
- url-pattern: /bar
methods: [GET]
roles: [admin]
I'm not sure how the realms work, but configuring a "secure deployment" worked for me:
swarm:
keycloak:
secure-deployments:
my-app.war:
auth-server-url: "http://localhost:8180/auth"
realm: test-realm
resource: test-client
public-client: true
ssl-required: EXTERNAL
deployment:
my-app.war:
web:
security-constraints:
- url-pattern: /protected/*
roles:
- "*"
LT
--
You received this message because you are subscribed to the Google Groups "WildFly Swarm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly-swar...@googlegroups.com.
To post to this group, send email to wildfl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly-swarm/21e5cf6b-a8e8-43c0-857d-89d330a7c756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly-swarm+unsubscribe@googlegroups.com.
To post to this group, send email to wildfl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly-swarm/245e901b-2c9b-4eda-a72b-dd06edfa0c61%40googlegroups.com.
Indeed it's possible to inline the entire configuration to project-defaults.yml -- the whole example is at https://github.com/Ladicek/swarm-test-suite/tree/master/wildfly/keycloak
I'm not a big fan of keycloak.json, because in case of a web app
with an API, you need to
and the preferred option for both of them is to use a file called
keycloak.json. Too easy to mess up.
LT
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly-swarm/CAOtGrG%2B0SaXFBx9A5qgvLRDsa_OnnfhSrQxF4id1%2Bmixzt3fRQ%40mail.gmail.com.