Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
We have our first Engineering team member with email format of [email protected]
setting up Coder environment which is done via Google OAuth sign-in with Google. Coder is stripping the dot .
character from the username so it becomes firstnamelastname
and it appears to be breaking JWT authentication. We worked around this by adding SSH key manually to the Coder instance.
I believe this is related to this code
If there is some sane reason I am missing for stripping the dot character from the username please let me know. Otherwise I would like to submit a PR for this issue.
Expected Behavior
Email domain is stripped so user is created as firstname.lastname
Steps to Reproduce
Provision a user via Google with username format of [email protected]
Environment
- Coder version: 2.18.4
Additional Context
No response