goodow / realtime-channel

分布式消息总线
http://realtimeplayground.goodow.com/bus.html
Apache License 2.0
41 stars 12 forks source link

For sockjsserver, should allow set server hook #6

Closed angeloh closed 10 years ago

angeloh commented 10 years ago

From this code, https://github.com/vert-x/vertx-examples/blob/6a48680b9072c0d7212c845c41e0cacfa147545f/src/raw/java/eventbusbridge/BridgeServer.java

one can setup a server hook to handler register authorize things like that. This is missing from realtime-channel server side.

larrytin commented 10 years ago

You can, eg: https://github.com/goodow/realtime-auth/blob/master/src/main/java/com/goodow/realtime/auth/server/impl/ChannelHandler.java

angeloh commented 10 years ago

Looks good. But how to get started on this module? Any example?

angeloh commented 10 years ago

One thing I don't understand is eventbusbridge has auth too. If I add the auth_address and requires_auth to inbound_permitted, it will do the auth too. What is the difference between realtime-auth and auth-mgr in vertx?

larrytin commented 10 years ago

Realtime-auth demonstrates how to set a server hook, you do not need this module, you should create your own auth mod for custom usage.

angeloh commented 10 years ago

Ok. So u just use the same way that you passed in hook in realtime-auth?— Sent from Mailbox

On Thu, May 29, 2014 at 9:52 PM, 田传武 notifications@github.com wrote:

Realtime-auth demonstrates how to set a server hook, you do not need this module, you should create your own auth mod for custom usage.

Reply to this email directly or view it on GitHub: https://github.com/goodow/realtime-channel/issues/6#issuecomment-44614941

larrytin commented 10 years ago

Right!