Wrong credentials, locked user or missing access rights to application

Hi!
i have a problem with the login. I have integrated the camunda spring boot in a existing maven project, When i start, the application start correctly but i can’t enter with the credentials.

2021-12-15 09:45:38.528  INFO 12661 --- [           main] c.m.job.services.camunda.Application     : Starting Application using Java 1.8.0_92 on ... with PID 
2021-12-15 09:45:38.538  INFO 12661 --- [           main] c.m.job.services.camunda.Application     : No active profile set, falling back to default profiles: default
2021-12-15 09:45:40.270  INFO 12661 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-15 09:45:40.276  INFO 12661 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-15 09:45:40.326  INFO 12661 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19 ms. Found 0 Redis repository interfaces.
2021-12-15 09:45:40.775  INFO 12661 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2021-12-15 09:45:40.787  INFO 12661 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2021-12-15 09:45:40.794  INFO 12661 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2021-12-15 09:45:41.333  INFO 12661 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-15 09:45:41.356  INFO 12661 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationChannelResolver' of type [org.springframework.integration.support.channel.BeanFactoryChannelResolver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-15 09:45:41.358  INFO 12661 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-15 09:45:41.825  INFO 12661 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-12-15 09:45:41.840  INFO 12661 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-12-15 09:45:41.841  INFO 12661 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.43]
2021-12-15 09:45:41.986  INFO 12661 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-12-15 09:45:41.986  INFO 12661 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3311 ms
2021-12-15 09:45:42.017  INFO 12661 --- [           main] .c.b.s.b.s.r.CamundaJerseyResourceConfig : Configuring camunda rest api.
2021-12-15 09:45:42.045  INFO 12661 --- [           main] .c.b.s.b.s.r.CamundaJerseyResourceConfig : Finished configuring camunda rest api.
2021-12-15 09:45:42.988  INFO 12661 --- [           main] org.camunda.bpm.spring.boot              : STARTER-SB040 Setting up jobExecutor with corePoolSize=3, maxPoolSize:10
2021-12-15 09:45:42.995  INFO 12661 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'camundaTaskExecutor'
2021-12-15 09:45:43.188  INFO 12661 --- [           main] org.camunda.bpm.engine.cfg               : ENGINE-12003 Plugin 'CompositeProcessEnginePlugin[genericPropertiesConfiguration, camundaProcessEngineConfiguration, camundaDatasourceConfiguration, camundaJobConfiguration, camundaHistoryConfiguration, camundaMetricsConfiguration, camundaAuthorizationConfiguration, camundaDeploymentConfiguration, CreateAdminUserConfiguration[adminUser=AdminUserProperty[id=demo, firstName=Demo, lastName=Demo, email=demo@localhost, password=******]], failedJobConfiguration, eventPublisherPlugin, SpringBootSpinProcessEnginePlugin]' activated on process engine 'default'
2021-12-15 09:45:44.797  WARN 12661 --- [           main] s.b.s.c.i.DefaultDeploymentConfiguration : unable to determine if resource URL [jar:file:/home/user/.m2/org/camunda/bpm/dmn/camunda-engine-dmn/7.15.0/camunda-engine-dmn-7.15.0.jar!/META-INF/maven/org.camunda.bpm.dmn/] is a deployable resource
2021-12-15 09:45:44.797  WARN 12661 --- [           main] s.b.s.c.i.DefaultDeploymentConfiguration : unable to determine if resource URL [jar:file:/home/user/.m2/org/camunda/bpm/dmn/camunda-engine-feel-api/7.15.0/camunda-engine-feel-api-7.15.0.jar!/META-INF/maven/org.camunda.bpm.dmn/] is a deployable resource
2021-12-15 09:45:44.797  WARN 12661 --- [           main] s.b.s.c.i.DefaultDeploymentConfiguration : unable to determine if resource URL [jar:file:/home/user/.m2/org/camunda/bpm/dmn/camunda-engine-feel-juel/7.15.0/camunda-engine-feel-juel-7.15.0.jar!/META-INF/maven/org.camunda.bpm.dmn/] is a deployable resource
2021-12-15 09:45:44.797  WARN 12661 --- [           main] s.b.s.c.i.DefaultDeploymentConfiguration : unable to determine if resource URL [jar:file:/home/user/.m2/org/camunda/bpm/dmn/camunda-engine-feel-scala/7.15.0/camunda-engine-feel-scala-7.15.0.jar!/META-INF/maven/org.camunda.bpm.dmn/] is a deployable resource
2021-12-15 09:45:44.797  INFO 12661 --- [           main] org.camunda.bpm.spring.boot              : STARTER-SB021 Auto-Deploying resources: [file [/home/user/git/domain/classes/process.bpmn]]
2021-12-15 09:45:44.800  INFO 12661 --- [           main] o.c.b.s.b.s.event.EventPublisherPlugin   : EVENTING-001: Initialized Camunda Spring Boot Eventing Engine Plugin.
2021-12-15 09:45:44.800  INFO 12661 --- [           main] o.c.b.s.b.s.event.EventPublisherPlugin   : EVENTING-003: Task events will be published as Spring Events.
2021-12-15 09:45:44.800  INFO 12661 --- [           main] o.c.b.s.b.s.event.EventPublisherPlugin   : EVENTING-005: Execution events will be published as Spring Events.
2021-12-15 09:45:44.803  INFO 12661 --- [           main] o.c.b.s.b.s.event.EventPublisherPlugin   : EVENTING-007: History events will be published as Spring events.
2021-12-15 09:45:44.810  INFO 12661 --- [           main] org.camunda.spin                         : SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2021-12-15 09:45:45.019  INFO 12661 --- [           main] org.camunda.spin                         : SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2021-12-15 09:45:45.033  INFO 12661 --- [           main] org.camunda.spin                         : SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2021-12-15 09:45:45.033  INFO 12661 --- [           main] org.camunda.spin                         : SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2021-12-15 09:45:45.131  INFO 12661 --- [           main] org.camunda.bpm.dmn.feel.scala           : FEEL/SCALA-01001 Spin value mapper detected
2021-12-15 09:45:45.368  INFO 12661 --- [           main] org.camunda.feel.FeelEngine              : Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@61a87366, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@3c33fcf8)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@7ae590f6, clock: SystemClock, configuration: Configuration(false)]
2021-12-15 09:45:45.466  INFO 12661 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-12-15 09:45:46.001  INFO 12661 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-12-15 09:45:50.598  INFO 12661 --- [           main] org.camunda.bpm.connect                  : CNCT-01004 Discovered provider for connector id 'http-connector' and class 'org.camunda.connect.httpclient.impl.HttpConnectorImpl': 'org.camunda.connect.httpclient.impl.HttpConnectorProviderImpl'
2021-12-15 09:45:50.604  INFO 12661 --- [           main] org.camunda.bpm.connect                  : CNCT-01004 Discovered provider for connector id 'soap-http-connector' and class 'org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorImpl': 'org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorProviderImpl'
2021-12-15 09:45:51.053  INFO 12661 --- [           main] org.camunda.bpm.engine                   : ENGINE-00001 Process Engine default created.
2021-12-15 09:45:51.157  INFO 12661 --- [           main] org.camunda.bpm.spring.boot              : STARTER-SB011 skip creating initial Admin User, user does exist: UserEntity[id=demo, revision=1, firstName=Demo, lastName=Demo, email=demo@localhost, password={SHA-512}1xQ9aa0KuS9vxp+wRh1IbCxqMbF9htVOJ2M0y0d0Z/NYvF3XFIZgHTwjF4Lu1iFc8VfBhM9dTMjRZSej1MnonA==, salt=hrcj1fitbgPLZrloviGkmQ==, lockExpirationTime=null, attempts=0]
2021-12-15 09:45:52.157  INFO 12661 --- [           main] o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazySecurityFilter@3e4e8fdf
2021-12-15 09:45:52.159  INFO 12661 --- [           main] o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazyProcessEnginesFilter@1cfc2538
2021-12-15 09:45:52.629  INFO 12661 --- [           main] .s.s.UserDetailsServiceAutoConfiguration : 

Using generated security password: db567688-6697-4181-860d-a9f568cb9c96

2021-12-15 09:45:52.819  INFO 12661 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@72240290, org.springframework.security.web.context.SecurityContextPersistenceFilter@351be56b, org.springframework.security.web.header.HeaderWriterFilter@21022cbb, org.springframework.security.web.csrf.CsrfFilter@f83d121, org.springframework.security.web.authentication.logout.LogoutFilter@3966c679, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@59c38af5, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@3945886e, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@b5311cb, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@6c1a63f7, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@21780905, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@799cf32d, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@34e9de8d, org.springframework.security.web.session.SessionManagementFilter@654cb30c, org.springframework.security.web.access.ExceptionTranslationFilter@6b576ff8, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7146c6ea]
2021-12-15 09:45:52.947  INFO 12661 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2021-12-15 09:45:53.009  INFO 12661 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2021-12-15 09:45:53.009  INFO 12661 --- [           main] o.s.i.channel.PublishSubscribeChannel    : Channel 'application.errorChannel' has 1 subscriber(s).
2021-12-15 09:45:53.010  INFO 12661 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : started bean '_org.springframework.integration.errorLogger'
2021-12-15 09:45:53.035  INFO 12661 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2021-12-15 09:45:53.048  INFO 12661 --- [           main] c.m.job.services.camunda.Application     : Started Application in 15.482 seconds (JVM running for 16.434)
2021-12-15 09:45:53.052  INFO 12661 --- [           main] org.camunda.bpm.engine.jobexecutor       : ENGINE-14014 Starting up the JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor].
2021-12-15 09:45:53.054  INFO 12661 --- [ingJobExecutor]] org.camunda.bpm.engine.jobexecutor       : ENGINE-14018 JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor] starting to acquire jobs
2021-12-15 09:46:18.543  INFO 12661 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-15 09:46:18.543  INFO 12661 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-12-15 09:46:18.547  INFO 12661 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 3 ms
2021-12-15 09:46:31.024  WARN 12661 --- [nio-8080-exec-1] o.a.c.util.SessionIdGeneratorBase        : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [12,380] milliseconds.

I have a step when i login with user and the generated security password, after this, i can’t log-in camunda.

Have you defined an admin user in the application.yml file?

yes
image

i found a solution …the problem was the security of spring that can’t permitted to login in camunda.

@SpringBootApplication(exclude = { SecurityAutoConfiguration.class })
i add the exclude and now works

2 Likes

@Sisar Spring security module is not required for camunda basic auth

thank you… took me about 5h to find your post and now it works :smiley:
Again: Thanks for this - was close to stop my trial