Authorization/Permissions with Thruway

You can use the AuthorizationManager that comes with Thruway to limit access to users of your Thruway Web Application Messaging Protocol (WAMP) router based on their roles. In order to use authorization, you must setup a router that is able to authenticate. You can check out how to setup a JWT authenticating router here. I … Continued

Integrating Symfony Authentication for ThruwayBundle

The last post I wrote gave instructions on how to push updates realtime with Symfony using the ThruwayBundle. If you implemented those instructions, you probably thought to yourself that there really isn’t a whole lot of security. If someone could guess your event names, they would be able connect and subscribe to them because the … Continued

Pushing Updates with the ThruwayBundle for Symfony

In this post I walk through creating a basic Symfony project that uses the ThruwayBundle to publish update and new events to a Thruway WAMP (Web Application Messaging Protocol) router. This can be used to create a realtime system that monitors your traditional Symfony application. This post touches just the surface of the ThruwayBundle. Hopefully … Continued

Using JSON Web Token (JWT) for Thruway Authentication

JSON Web Tokens (JWT) are a great way to easily add authentication to your Thruway router. It allows you to generate authentication credentials from any supported environment. It is great for integrating your new Thruway router into your existing traditional web application. In this example, I am going to create a module that lives inside … Continued

Simple Desktop Notifications with a WAMP Chrome Extension

I’ve been working on a Chrome app that uses WAMP (Web Application Messaging Protocol) for it’s real-time API. One of the requirements is that users need to be notified when certain events occur on the server. After looking through the Chrome API notification examples, I was very surprised at how easy this was to implement … Continued

Authentication in Thruway WAMP Router

This is an article about how the Thruway WAMP (Web Application Messaging Protocol) Router works. This is not necessarily intended to be a how-to article, but a detailed discussion of what the authentication process is and what sequence happens during authentication in the Thruway router. In order to have a basis for the discussion, it … Continued

Creating a Custom PHP WAMP Client for Thruway

There are a few different options you have when creating a WAMP (Web Application Messaging Protocol) client with Thruway. Option 1 is to use the Connection object provided with Thruway. This object was meant to ease the transition for those people familiar with simple use of the AutobahnJS Connection object. There is an example of … Continued