Extra client information using dynamic ticket authentication

#1

Hi all. I’m wondering if it’s possible to pass extra information to the authenticator when using dynamic ticket authentication.

For example, I’d like the a mobile app to send it’s device type and device ID with the authentication challenge so that on a successful authentication I can store the device information to allow me to send push notifications.

I know I can send that information later but it would be kind of cool to get it out of the way during authentication.

Is this possible?

Thanks in advance.

Regards,

Andrew Eddie

0 Likes

#2

Hi Andrew,

Hi all. I'm wondering if it's possible to pass extra information to the
authenticator when using dynamic ticket authentication.

Yes, this is possible, and here is the example doing exactly that:

https://github.com/crossbario/crossbar-examples/blob/master/authentication/advanced/authenticator.py#L78

Cheers,
/Tobias

···

Am 31.08.2017 um 13:10 schrieb Andrew Eddie:

For example, I'd like the a mobile app to send it's device type and device
ID with the authentication challenge so that on a successful authentication
I can store the device information to allow me to send push notifications.

I know I can send that information later but it would be kind of cool to
get it out of the way during authentication.

Is this possible?

Thanks in advance.

Regards,
Andrew Eddie

0 Likes

#3

Hi Tobias - that was quick :slight_smile:

Yes, I’m using this technique to return information to the client. However, is there a way for the client to inject addition information in the “details” argument when it opens the connection?

I want to get to something like this:

def authenticate(realm, authid, details):

ticket = details[‘ticket’]

deviceId = details[‘extra’][‘deviceId’]

Possible?

Thanks in advance.

Regards,

Andrew Eddie

···

On Thursday, 31 August 2017 21:13:40 UTC+10, Tobias Oberstein wrote:

Yes, this is possible, and here is the example doing exactly that:

https://github.com/crossbario/crossbar-examples/blob/master/authentication/advanced/authenticator.py#L78

0 Likes

#4

Yes, this is possible, and here is the example doing exactly that:

https://github.com/crossbario/crossbar-examples/blob/master/authentication/advanced/authenticator.py#L78

Hi Tobias - that was quick :slight_smile:

Yes, I'm using this technique to return information to the client. However,
is there a way for the client to inject addition information in the
"details" argument when it opens the connection?

Yes, the other direction is supported as well: client can send authextra which is received in dynamic authenticator

···

Am 31.08.2017 um 13:20 schrieb Andrew Eddie:

On Thursday, 31 August 2017 21:13:40 UTC+10, Tobias Oberstein wrote:

I want to get to something like this:

def authenticate(realm, authid, details):
   ticket = details['ticket']
   deviceId = details['extra']['deviceId']

Possible?

Thanks in advance.

Regards,
Andrew Eddie

0 Likes