wamp2spring icon indicating copy to clipboard operation
wamp2spring copied to clipboard

Does wamp2spring-reactive support authentication?

Open we6288815 opened this issue 3 years ago • 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!

we6288815 avatar Dec 31 '21 08:12 we6288815

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.

ralscha avatar Jan 03 '22 04:01 ralscha

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.

we6288815 avatar Jan 04 '22 01:01 we6288815

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!

mycroft11 avatar Mar 14 '22 15:03 mycroft11

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();
	}

}

ralscha avatar Mar 17 '22 03:03 ralscha