/ably-auth-server

A demonstration of the different Ably authentication methods.

Primary LanguageJavaScript

Ably Authentication Server

This demo application shows you how to authenticate with Ably using various different methods. It comprises an authentication server and a client that enables you to choose which authentication method to use.

To run it:

  1. Rename sample.env to .env and enter your API key secret.
  2. Run npm install to install dependencies.
  3. Run npm start to start the server.
  4. Visit https://localhost:8080 in your browser.
  5. Select an authentication method and then click:
    • Connect: To authenticate with Ably using your chosen authentication method
    • Subscribe: To subscribe to testChannel
    • Test: To publish to testChannel
    • Disconnect: To terminate the connection