Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login error for users with '+' in their account names #60

Open
fsallstrom opened this issue Jun 27, 2023 · 1 comment
Open

Login error for users with '+' in their account names #60

fsallstrom opened this issue Jun 27, 2023 · 1 comment

Comments

@fsallstrom
Copy link

Hi, I have many users getting login error. All of them have a + in their dexcom username. I know it used to be a problem before to have sepcial characters in the username but that was fixed long time ago. either there was some change in the dexcom API that cause these accounts to fail authentication, or I am doing something wrong with the character encoding of my login requests.

This request works:
curl -k -X POST https://shareous1.dexcom.com/ShareWebServices/Services/General/AuthenticatePublisherAccount --data '{"password":"<hidden password here>", "applicationId":"d89443d2-327c-4a6f-89e5-496bbb0317db", "accountName":"[email protected]"}' -H "Accept: application/json" -H "Content-type: application/json"

but if I try with another account that has a + in their dexcom username, like this:
curl -k -X POST https://shareous1.dexcom.com/ShareWebServices/Services/General/AuthenticatePublisherAccount --data '{"password":"<hidden password here>", "applicationId":"d89443d2-327c-4a6f-89e5-496bbb0317db", "accountName":"+14087977776"}' -H "Accept: application/json" -H "Content-type: application/json"

I get an error message:
{"Code":"AccountPasswordInvalid","Message":"Publisher account password failed","SubCode":"<OnlineException DateThrownLocal=\"2023-06-27T15:33:08.793\" DateThrown=\"2023-06-27T15:33:08.793Z\" ErrorCode=\"AccountPasswordInvalid\" Type=\"13\" Category=\"4\" Severity=\"1\" TypeString=\"InvalidPassword\" CategoryString=\"Validation\" SeverityString=\"Minor\" HostName=\"\" HostIP=\"\" Id=\"{b2963c4a-0429-4ca2-af79-d5fc1ee4c3b4}\" Message=\"Publisher account password failed\" FullText=\"com.dexcom.udp.common.data.exception.OnlineException: Publisher account password failed\" />","TypeName":"FaultException"

Both account works fine when logging into https://uam1.dexcom.com

Any ideas?

@fsallstrom
Copy link
Author

Still have not been able to resolve the issue with account names including '+' being rejected by the dexcom server. Here is what I get in the Heroku log file:

2023-07-14T21:17:26.611383+00:00 app[web.1]: Cannot authorize account: null 500 {
2023-07-14T21:17:26.611407+00:00 app[web.1]: Code: 'AccountPasswordInvalid',
2023-07-14T21:17:26.611407+00:00 app[web.1]: Message: 'Publisher account password failed',
2023-07-14T21:17:26.611411+00:00 app[web.1]: SubCode: '',

I have also tried using curl to post the request directly, but with the same results. It seems like there is an issue with the dexcom server (only tested the US one), very similar to the previous issue with special chars in the acount name that later got fixed.

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

No branches or pull requests

1 participant