Skip to content

Stomp-Client: add authentication to connection process#18

Open
wherget wants to merge 3 commits into
projectodd:masterfrom
wherget:master
Open

Stomp-Client: add authentication to connection process#18
wherget wants to merge 3 commits into
projectodd:masterfrom
wherget:master

Conversation

@wherget

@wherget wherget commented Sep 5, 2013

Copy link
Copy Markdown

This should fix #15

Known issues: you can't have passwords or usernames with colons in them. (Anyone know of suitable framework code to parse a URI.getUserInfo() in a standards-compliant way?)

@swistaczek

Copy link
Copy Markdown

👍

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo, should be client.getAuthenticationPassword().

@wherget

wherget commented Nov 27, 2013

Copy link
Copy Markdown
Author

An Idea I had to get around the colon-separation issue is to require username and password to be url-encoded and throw an error if there's more than one colon in the getUserInfo() string. What do you think?

This should now be more compliant to RFC3986.
RFC3986 (3.2.1) states that the username ends at the first colon,
and everything after that is to be considered parameters for the
authorization scheme. (Here, it will be the password only.)
@wherget

wherget commented Jan 28, 2014

Copy link
Copy Markdown
Author

I had a good re-read of RFC3986 (URI syntax) and rewrote the Authorization extraction to reflect that.
URL en/decoding ist done by the URI class already, so if you have no remaining issues, I'd be glad if you could merge those changes for the next version.

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.

Support for username & password authentication in stomp-client

3 participants