Autobahn/android for wamp v2

#1

Hello everyone,

We have been using crossbar for some time now with a lot sucess for browser web apps using autobahn/js.

We need to develop an android native app and need to connect to crossbar.io 0.15 but what i undestand is that auotbahn/android only supports v1 wamp.

Questions:

1 - Any chance of a new autobahn/android that supports v2 wamp in a near future?

2 - In case of a no chance on question 1 is there any other way to do it?

Thanks in advance.

0 Likes

#2

have same problem, will be fine if someone from dev explain this

0 Likes

#3

i’m not java developer, but looks like jawamp is alternative (and can be used in android)

https://github.com/Matthias247/jawampa
https://github.com/jrogers/AndroidWampExample

0 Likes

#4

Thanks Sergey,

I already tried both without sucess because of my WAMP-CRA with Salt auth.

There is one example with CRA auth but the class that builds the private key but it lacks the recent PBKDF2 with SHA256 solution.

Basically i need something on java that generates the same private key of the derive_key on autobahn/js:

// PBKDF2-base key derivation function for salted WAMP-CRA

//

function derive_key (secret, salt, iterations, keylen) {

var iterations = iterations || 1000;

var keylen = keylen || 32;

var config = {

keySize: keylen / 4,

iterations: iterations,

hasher: crypto.algo.SHA256

}

var key = crypto.PBKDF2(secret, salt, config);

return key.toString(crypto.enc.Base64);

}

``

Anyone?

quinta-feira, 15 de Setembro de 2016 às 12:38:35 UTC+1, Sergey Maranchuk escreveu:

···

i’m not java developer, but looks like jawamp is alternative (and can be used in android)

https://github.com/Matthias247/jawampa
https://github.com/jrogers/AndroidWampExample

0 Likes

#5

Sergey,

This is the closest to a WAMP-CRA auth but i had to make some modifications on the WAMP-CRA class.

https://github.com/GoodgameStudios/jawampa

I had to change calculateHmacSHA256 to use a pbkdf2 salted PK with SHA256 before the HmacSHA256.

Use Bouncycastle to achieve this.

Thanks

quinta-feira, 15 de Setembro de 2016 às 12:38:35 UTC+1, Sergey Maranchuk escreveu:

···

i’m not java developer, but looks like jawamp is alternative (and can be used in android)

https://github.com/Matthias247/jawampa
https://github.com/jrogers/AndroidWampExample

0 Likes

#6

Hi Nuno,

the issue, and what needs to be done is described here

https://github.com/crossbario/autobahn-android/issues/92

We (Tavendo) currently lack resources to do this.

If you throw some money over the fence, we could hire someone and do the steering/reviewing of the work.

Cheers,
/Tobias

···

Am Freitag, 9. September 2016 18:53:22 UTC+2 schrieb Nuno Vitorino:

Hello everyone,

We have been using crossbar for some time now with a lot sucess for browser web apps using autobahn/js.

We need to develop an android native app and need to connect to crossbar.io 0.15 but what i undestand is that auotbahn/android only supports v1 wamp.

Questions:

1 - Any chance of a new autobahn/android that supports v2 wamp in a near future?

2 - In case of a no chance on question 1 is there any other way to do it?

Thanks in advance.

0 Likes