Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Dynamic creation of Realms #91

Open
sebastianwahn opened this issue Aug 16, 2016 · 0 comments
Open

Dynamic creation of Realms #91

sebastianwahn opened this issue Aug 16, 2016 · 0 comments

Comments

@sebastianwahn
Copy link

Currently, there is no possibility to add Realms after the router was built. Accodring to the specification it is the routers business if he creates realms after it is started.

Note. The behavior if a requested "Realm" does not presently
exist is router-specific. A router may e.g. automatically create
the realm, or deny the establishment of the session with a "ABORT"
reply message.

See: https://tools.ietf.org/html/draft-oberstet-hybi-tavendo-wamp-02#section-7.1.2

In this case i would suggest that:
a) a client requests a realm which is not created, then the router can create it (set via option when the router is built)
b) the router can dynamically create realms within the code router.addRealm(...) (currently only possible before the object is built)

Use case - microservice architecture:
A client authenticates via BasicAuth/oAuth/... on a REST-Interface. The router gets notified, that a authenticated client wants to access the services of the application. Afterwards, a realm is created where the user can interact with other users and/or services which are also connecting to the new realm.
In this case the user can interact with other users who can join the realm (via invitation, ...) and the services who joined the realm.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant