bachya/simplisafe-python

Example auth process opens browser with unusable URL

FlyingDiver opened this issue · 3 comments

Describe the bug
Example auth process opens browser with unusable URL

To Reproduce
Steps to reproduce the behavior:
Install and attempt to auth using the steps given at:
https://simplisafe-python.readthedocs.io/en/latest/usage.html#accessing-the-api

When the browser opened, the URL was:
com.simplisafe.mobile://auth.simplisafe.com/ios/com.simplisafe.mobile/callback?code=XXXXX

Got this error:
Screen Shot 2022-02-22 at 2 37 48 PM

Attempted that URL with Chrome as well. Also did not work.

Expected behavior
Web page as in the example doc.

I have a complete console log of the install if you want it.

Take a look at the end of step 8 – you've already logged into your account with this browser and SimpliSafe recognizes it, so it's allowing you to skip right to the end. Use the code at the end of the URL and you're good to go.

I can deal with it in my code, but shouldn't the example script be able to detect that and print out the code instead of opening the browser? Or is that a redirect URL from the server and the code never sees it?

It is a redirect URL.