How to Authenticate with the eventbus bridge

41 views
Skip to first unread message

Fuzz

unread,
Oct 19, 2017, 6:40:18 AM10/19/17
to vert.x
Hello,


The example shows how to setup the server side authentication stack. 
How is authentitication setup on the client please?
Does it work with all sockjs transports?

Thanks
Fuzz

Fuzz

unread,
Oct 19, 2017, 6:55:52 AM10/19/17
to vert.x
Hello, I figured it out :-)

const eb = new EventBus("http://localhost:8080/eventbus");
eb.defaultHeaders = {
"Authorization": "Basic " + btoa("username" + ":" + "password")
}

Not sure yet if that works across all transports ... any thoughts?

thanks
f

Paulo Lopes

unread,
Oct 21, 2017, 1:09:05 PM10/21/17
to vert.x
If you’re using service proxies there is now support for jwt authz on the proxy calls.

Fuzz

unread,
Oct 24, 2017, 11:37:20 AM10/24/17
to vert.x
Thanks Paulo
Reply all
Reply to author
Forward
0 new messages