Skip to content

Kotlin DSL examples in reactive oauth2 docs call build twice #10580

Closed
@sjohnr

Description

@sjohnr

This issue addresses incorrect usage of the Kotlin DSL related to documentation improvements under gh-8174.

    @Bean
    fun securityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
        http {
            ...
        }

        return http.build()
    }

Should be:

    @Bean
    fun securityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
        return http {
            ...
        }
    }

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplesstatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions