Welcome to the Kinde community

Updated 2 months ago

Handling Email Addresses With Plus Signs in the Username

At a glance

A community member asked if the Kinde platform can handle email addresses with "+" in the username via the "login_hint" parameter, as it seems to remove the "+" when they tried it. Another community member responded that they use emails with "+" internally and will look into the issue. The original poster then confirmed the issue was fixed, but did not provide details on what the problem was.

In a follow-up comment, the community member who fixed the issue explained that there was a step between accepting an invite via email and before posting to the platform, where the "+" was being sanitized only at the point of setting the URL params for the "login_hint" on the outgoing invite email. When the user landed back at the app before posting, the "+" was not sanitized again, causing it to be converted to a space on the outgoing POST request.

Hey guys. Is Kinde capable of handling email addresses with + in the username via the login_hint parameter? It seems to remove the + when I've tried this. E.g. user+123@test.com becomes user 123@test.com . I am URL encoding the email address FWIW.

D
J
P
5 comments

Yes we use emails with + all the time internally, let me check what could be happening here.

This is me, now fixed. Sorry if this wasted any of your time πŸ™

Oh great! thanks for letting me know. What was it?

We have a step between accepting an invite via email and before we POST to you. When I looked into this initially, I was sanitising the URL params only at the point in which wet set the URL params for the login_hint on the outgoing invite email. When we landed back at our app before we POST to you, I missed ensuring it was sanitised again when set on a link our Rails UJS helper was converting to a POST request that inevitably is sent to you. So because there were effectively two steps, + was converted to a space on the outgoing POST

Thanks for letting me know.

Have a great weekend

Add a reply
Sign up and join the conversation on Slack