Skip to content

Add username from CONNECT to client after authenticate succes#660

Open
faceless2 wants to merge 2 commits intomoscajs:mainfrom
faceless2:client-set-username
Open

Add username from CONNECT to client after authenticate succes#660
faceless2 wants to merge 2 commits intomoscajs:mainfrom
faceless2:client-set-username

Conversation

@faceless2
Copy link
Copy Markdown

Re issue #147, the basic requirement in any authentication scheme is knowing the username specified during the CONNECT phase. So I think this really should be in the core API, rather than added by users.

This patch adds a that as the Client.username property.

@robertsLando
Copy link
Copy Markdown
Member

You should add a unit test that covers this

@robertsLando
Copy link
Copy Markdown
Member

I would also know @getlarge and @mcollina thoughts on this

@getlarge
Copy link
Copy Markdown
Member

It makes sense to have the username by default in the client, personally i always add it manually :)
And yes some tests would be needed and the types should be updated too.

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.

3 participants