Skip to content

Refactored UUID into SessionID interface#132

Open
dlorych wants to merge 3 commits intomrniko:masterfrom
dlorych:master
Open

Refactored UUID into SessionID interface#132
dlorych wants to merge 3 commits intomrniko:masterfrom
dlorych:master

Conversation

@dlorych
Copy link
Copy Markdown

@dlorych dlorych commented Jul 14, 2014

Hi,

Introducing AuthorizationHandler was a great step forward, finally we can integrate our websites with netty-socketio. Unfortunately, the session ids used by apps does not have to comply with UUID format.

To overcome this I have created a SessionID interface and an abstract factory SessionIDFactory, with default implementation based on UUID. The developers can now create their own implementations of session ids using their formats.

The project is missing unit tests, and I did not have time yet to verify the solution is not breaking any other functionality.

Feel free to merge these changes if you find it useful.

daniel and others added 3 commits July 14, 2014 00:22
rest of code to use it.

Modified AuthorizeHandler to check for sessionID in handshake data -
AuthorizationListener is able to extract data from Cookie and put it
back to HandshakeData.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant