Skip to content

hasIpAddress in RSocket Security #7988

Open
@kacper-emersoft

Description

@kacper-emersoft

Summary

I cannot see any option to check/validate IP address of client using Spring Security RSocket library.

Actual Behavior

RSocket Security gives no option to validate or whitelist IP address of client on setup phase.

Expected Behavior

I would love to have similar method like .hasIpAddress in Webflux or MVC security configuration.

Configuration

Version

5.2.1.RELEASE

Sample

@Bean
    PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rSocket) {
        return rSocket
                .authorizePayload(authorize ->
                        authorize
                                .anyRequest().hasAnyRole(...) // hasIpAddress missing
                                .anyExchange().permitAll()
                )
                .jwt(Customizer.withDefaults())
                .build();
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions