question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

private-encrypted does not call authEndpoint

See original GitHub issue

In my client app (JS) I have this code:

this.pusherInstance = new Pusher('key', {
  cluster: 'eu',
  authEndpoint: `${url}/pusher/auth-private-channel`,
})

var channel = this.pusherInstance.subscribe(`private-encrypted-event_${this.event.id}`)

I expect it to call ‘http://myservername.dev/pusher/auth-private-channel’, but it does not.

When I change the channel name to private-event_${this.event.id}, the auth endpoint get called and everything works as it should.

I’m using pusher-js 7.0.0 and on the api pusher-php-server 4.1.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leesiocommented, Aug 21, 2020

ahh, that explains it indeed. Thanks for letting me know.

I’ve made a note to update that documentation too.

Thanks again

1reaction
leesiocommented, Aug 21, 2020

The end to end encryption functionality was split into a different bundle in version 6.0.0.

Does it work when you import like this?

import Pusher from 'pusher-js/with-encryption';
Read more comments on GitHub >

github_iconTop Results From Across the Web

Pusher Private channel subscribtion cannot connect to ...
So I cannot understand where is the problem. If I use a default channel (so no private) everything works fine also on IOS...
Read more >
End-to-end encryption in Pusher Channels is now out of Beta
Our end-to-end encryption feature is implemented on a new channel type, which begins with private-encrypted- . For example, the doctor with ...
Read more >
pusher_channels_flutter 1.0.4 | Flutter Package - Pub.dev
Public channels; Private channels; Private encrypted channels ... The authEndpoint provides a URL that the Pusher client will call to authorize users for...
Read more >
About the security of passkeys - Apple Support
Passkeys sync across a user's devices using iCloud Keychain. iCloud Keychain is end-to-end encrypted with strong cryptographic keys not known to ...
Read more >
Using OAuth 2.0 for Web Server Applications | Authorization
Any application that calls Google APIs needs to enable those APIs in the API ... Important: Do not store the client_secret.json file in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found