Skip to content

URI encode mongo auth#2

Open
runer112 wants to merge 1 commit intojannunzi:2017-summer-2from
runer112:2017-summer-2
Open

URI encode mongo auth#2
runer112 wants to merge 1 commit intojannunzi:2017-summer-2from
runer112:2017-summer-2

Conversation

@runer112
Copy link
Copy Markdown

@runer112 runer112 commented Jul 3, 2017

With the template code, the mLab username and password are concatenated directly into the connection string. If they contain any characters that need to be URI encoded, this will result in a bad URI and an authentication error. This change URI encodes/decodes the username and password to fix the issue.

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