Skip to content

Push: late-initialised clientId not updated in LocalDevice #481

@paddybyers

Description

@paddybyers

It is possible to initialise the client library in a way that means the clientId is not known in the constructor; instead, it only becomes known when either an authURL/authCallback supplies a TokenDetails that indicates the clientId or at a later time after connection (via the clientId returned in the ConnectionDetails).

This means that it is possible that push activation occurs before the clientId is known, and the local device registration therefore does not include the clientId.

It looks like there are two issues:

  1. https://docs.ably.io/client-lib-development-guide/features/#RSA7b2 is not implemented: this means that late initialisation of a clientId is deferred until a connection is established, whereas it should be set if auth details - TokenDetails or TokenRequest - contain a clientId;

  2. in Auth.setClientId(), any LocalDevice does not have its clientId updated, and there is no subsequent registration update.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions