jdaugherty commented on PR #16375:
URL: https://github.com/apache/grails-core/pull/16375#issuecomment-5779289972
> why not use the bean dsl like the starter app does?
>
> ```groovy
> def beans = {
>
> bean(PasswordEncoder) {
> PasswordEncoderFactories.createDelegatingPasswordEncoder()
> }
>
> bean('filterChain', SecurityFilterChain) { HttpSecurity http ->
> http
> .authorizeHttpRequests {
> it.requestMatchers('/', '/index', '/index.gsp',
'/error', '/favicon.ico','/assets/**').permitAll()
> .requestMatchers('/user/**').hasRole('ADMIN')
> .anyRequest().authenticated()
> }
> .formLogin { }
> .logout { it.logoutSuccessUrl('/') }
> http.build()
> }
> }
> ```
Because the IntelliJ plugin still doesn't support it 👀 ... have time to
work on that yet? =)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]