Class TestConfiguration

java.lang.Object
org.activiti.cloud.services.test.TestConfiguration

@AutoConfiguration @AutoConfigureBefore(org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class) public class TestConfiguration extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestConfiguration(List<com.fasterxml.jackson.databind.Module> modules)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.activiti.cloud.services.test.identity.interceptor.IdentityTokenInterceptor
    identityTokenInterceptor(org.activiti.cloud.services.test.identity.IdentityTokenProducer keycloakTokenProducer)
     
    org.activiti.cloud.services.test.identity.IdentityTokenProducer
    keycloakTokenProducer(String authServerUrl, String realm)
     
    org.springframework.boot.web.client.RestTemplateBuilder
    restTemplateBuilder(org.activiti.cloud.services.test.identity.interceptor.IdentityTokenInterceptor identityTokenInterceptor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestConfiguration

      public TestConfiguration(List<com.fasterxml.jackson.databind.Module> modules)
  • Method Details

    • keycloakTokenProducer

      @Bean @ConditionalOnMissingBean public org.activiti.cloud.services.test.identity.IdentityTokenProducer keycloakTokenProducer(@Value("${keycloak.auth-server-url:}") String authServerUrl, @Value("${keycloak.realm:}") String realm)
    • identityTokenInterceptor

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="identity.test.token-interceptor.enabled", havingValue="true", matchIfMissing=true) public org.activiti.cloud.services.test.identity.interceptor.IdentityTokenInterceptor identityTokenInterceptor(org.activiti.cloud.services.test.identity.IdentityTokenProducer keycloakTokenProducer)
    • restTemplateBuilder

      @Bean @ConditionalOnMissingBean public org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder(@Autowired(required=false) org.activiti.cloud.services.test.identity.interceptor.IdentityTokenInterceptor identityTokenInterceptor)