Skip to content

add authextra into session meta info - #238

Open
zarv1k wants to merge 1 commit into
voryx:masterfrom
zarv1k:master
Open

add authextra into session meta info#238
zarv1k wants to merge 1 commit into
voryx:masterfrom
zarv1k:master

Conversation

@zarv1k

@zarv1k zarv1k commented Mar 18, 2017

Copy link
Copy Markdown

Hi guys!

In my app I use Thruway router and I’ve implemented server-side wamp client subscriber for meta events like on_join/on_leave. In event handlers of such events, I’d like to use client’s info such as IP, user-agent, header and so on for save that info into redis. So for transfer such kind of data I want to use authExtra from authenticationDetails.

I’ve already found a workaround without any library changes. I’ve overridden Session::getMetaInfo() method and also overridden method Router::createNewSession() in subclasses. But I think it would be great if the library will support extra auth data in meta events out of box.

@mbonneau

Copy link
Copy Markdown
Member

@zarv1k - Would you mind rebasing onto the current master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants