Skip to content

Add support for configuring SslInfo in WebTestClient #35042

Open
@rwinch

Description

@rwinch

I would like to be able to use WebTestClient to test applications that use SslInfo without the need to use an HTTP connection (e.g. use WebTestClient.bindToApplicationContext(ApplicationContext)).

Right now the only way I can do this is to provide a custom WebTestClientConfigurer that mutates the ServerHttpRequest. I thought about providing this in Spring Security, but since there are no Spring Security dependencies, I think that it makes more sense in Spring Framework.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions