Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add authextra into session meta info #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add authextra into session meta info #238

wants to merge 1 commit into from

Conversation

zarv1k
Copy link

@zarv1k zarv1k commented Mar 18, 2017

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
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