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 goes to old server #82

Open
JakobBerg opened this issue Sep 1, 2019 · 4 comments
Open

login goes to old server #82

JakobBerg opened this issue Sep 1, 2019 · 4 comments

Comments

@JakobBerg
Copy link
Contributor

"Settings" --> "Login" is trying to load https://auth-client.getpebble.com/en_US/

The rebble.io server has an option to login by an auth token which can be obtained by logging in to https://boot.rebble.io from an android device and copying the link named "SWITCH TO REBBLE" the structure of this link is:
pebble://custom-boot-config-url/https%3A%2F%2Fboot.rebble.io%2Fapi%2Fstage2%2F%3Faccess_token%3D[30alphanumerics]%26t%3D[10digits]

the link intended for android pebble app appears to be:
https://boot.rebble.io/api/stage2/?access_token=[30alphanumerics]&t=[10digits]

When requesting this link from my Sailfish device webbrowser, a page is returned with the text: "Please be more specific."

Would there be any way to trick Rockpool to login by manually modifying the link? or would it be necessary to consult the rebble devs?

@abranson
Copy link
Owner

abranson commented Sep 1, 2019

I think that custom-boot-config-url is how they tell the Android Pebble app to reconfigure itself to use Rebble's URLs for its services, so doesn't help us much unless we can see that tasty list and then hardcode all that. I thought logins would probably go through auth.rebble.io, but without knowing the URLs to use for everything else, it's a bit tricky. Really want to know if/where they're keeping the firmware too. There's a 4.4-rbl one around somewhere I think.

Might be best to ask them for the official way to interact with their stuff.

@abranson
Copy link
Owner

abranson commented Sep 1, 2019

@JakobBerg
Copy link
Contributor Author

Not sure if this can help, someone played around with the same problem and suggested to mimic the solution from gadgetbridge: http://talk.maemo.org/showpost.php?p=1555502&postcount=697

@jwise
Copy link

jwise commented Sep 2, 2019

I think the Android pebble app knows that it's supposed to put /android/v3 before the ?. Try doing that?

Note that some of our URL formats are different than Pebble's, and encode access tokens in different places (especially dictation!). So you should really be parsing the JSON that is returned from that link, rather than hardcoding URLs internally.

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

3 participants