Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.22 KB

File metadata and controls

40 lines (32 loc) · 1.22 KB

embedded-keycloak

Maven dependency

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-keycloak</artifactId>
    <scope>test</scope>
</dependency>

Consumes (via bootstrap.properties)

  • embedded.keycloak.enabled (true|false, default is true)

  • embedded.keycloak.reuseContainer (true|false, default is false)

  • embedded.keycloak.dockerImage (default is 'jboss/keycloak:15.0.0')

  • embedded.keycloak.command (String[], default is '["-c", "standalone.xml", "-Dkeycloak.profile.feature.upload_scripts=enabled"]')

  • embedded.keycloak.admin-user (default is 'admin')

  • embedded.keycloak.admin-password (default is 'letmein')

  • embedded.keycloak.import-file (default is '')

Produces

  • embedded.keycloak.host

  • embedded.keycloak.http-port (mapped HTTP port)

  • embedded.keycloak.auth-server-url

Example

To configure for example the keycloak-spring-boot-starter use these properties in your test application.yaml:

/src/test/resources/application.yaml
keycloak:
  auth-server-url: ${embedded.keycloak.auth-server-url}