So, I've spent a few hours debugging how to allow non-authenticated users to subscribe to the uri, and allow authenticated users (AuthenticationManager+WampCraAuthProvider) to publish messages to the same uri in the same realm.
if (!$this->realmHasAuthProvider($realm->getRealmName())) {
With this change in place, the setup works as expected. PHPUnit shows the same output:
Tests: 139, Assertions: 608, Errors: 6, Failures: 23, Skipped: 2
So, I've spent a few hours debugging how to allow non-authenticated users to subscribe to the uri, and allow authenticated users (
AuthenticationManager
+WampCraAuthProvider
) to publish messages to the same uri in the same realm.AuthorizationManager
rules:Is this maybe incorrect? https://github.com/voryx/Thruway/blob/b82fed26af801e31f68f2889f1838c30a53503e7/src/Authentication/AuthenticationManager.php#L225-L235
Based from the comment, it should be negated as:
With this change in place, the setup works as expected. PHPUnit shows the same output:
Tests: 139, Assertions: 608, Errors: 6, Failures: 23, Skipped: 2