snippets/springboot-security-sso/src/main/java/com/camunda/demo/config/SecurityConfig.java
@SuppressWarnings("deprecation")
    @Bean
    public UserDetailsService userDetailsService() {
        InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager();
        manager.createUser(User.withDefaultPasswordEncoder().username("demo").password("demo").roles("ACTUATOR", "camunda-admin").build());
        manager.createUser(User.withDefaultPasswordEncoder().username("john").password("john").roles("camunda-user").build());
        return manager;
    }
@SuppressWarnings("deprecation")
    @Bean
    public UserDetailsService userDetailsService() {
        InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager();
        manager.createUser(User.withDefaultPasswordEncoder().username("demo").password("demo").roles("ACTUATOR", "camunda-admin").build());
        manager.createUser(User.withDefaultPasswordEncoder().username("john").password("john").roles("camunda-user").build());
        return manager;
    }
@ SuppressWarnings ( "deprecation" ) @ Bean public UserDetailsService userDetailsService ( ) { InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager ( ) ; manager . createUser ( User . withDefaultPasswordEncoder ( ) . username ( "demo" ) . password ( "demo" ) . roles ( "ACTUATOR" , "camunda-admin" ) . build ( ) ) ; manager . createUser ( User . withDefaultPasswordEncoder ( ) . username ( "john" ) . password ( "john" ) . roles ( "camunda-user" ) . build ( ) ) ; return manager ; }
In real world scenarios, this would be replaced by the actual IAM solution
In real world scenarios this would be replaced by the actual IAM solution