ralscha/wamp2spring

Does wamp2spring-reactive support authentication?

we6288815 opened this issue · 4 comments

Hi,
I now have a Wamp client that needs to authenticate authid and ticket. Can you tell me whether the current wamp2spring-reactive supports it and how to configure it? If not, can you tell me how to modify the wamp2spring-reactive source code to support it?
Thank you!

Hi

There is a security-reactive module in the project. It contains a configurer

But I've never used it and I don't remember if it's complete and how to configure it.

Hi

There is a security-reactive module in the project. It contains a configurer

But I've never used it and I don't remember if it's complete and how to configure it.

Okay, thank you. I'll try.

Hello, expanding on the initial question, how exactly can we tie in wamp client (autobhan/wampy) authentication into the spring security framework? I can't see where it all ties in together. Thank you!

The mobile-chat demo uses non-reactive spring security
https://github.com/ralscha/wamp2spring-demo/tree/master/mobile-chat

I assume it works very similar to this. Create a configuration class, extend from AbstractSecurityWampReactiveConfigurer
and implement configureInbound

@Configuration
public class WampSecurityConfig extends AbstractSecurityWampReactiveConfigurer{

	@Override
	protected void configureInbound(WampMessageSecurityMetadataSourceRegistry messages) {
		messages.anyMessage().authenticated();
	}

}