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

Api url not working #42

Open
sander-visser opened this issue Mar 9, 2024 · 4 comments
Open

Api url not working #42

sander-visser opened this issue Mar 9, 2024 · 4 comments

Comments

@sander-visser
Copy link

Where to get siteid when linked https://mypagesapi.sectoralarm.net/ is not functioning?

@burner-
Copy link

burner- commented Mar 23, 2024

that root wont work and looks that /User/Login is not valid anymore. Service use
https://login.sectoralarm.com for login but library wont support it.

@perbrage
Copy link
Owner

I haven't been super active on this project as I don't use it due to sector alarms failing cloud services. But, I see they have reworked the login which might be more to work on than just changing URL.

Did anyone try to just change URL?

@burner-
Copy link

burner- commented Mar 24, 2024

I did not. But I look with browser and it looks that it still use https://mypagesapi.sectoralarm.net/ for commands but https://login.sectoralarm.com/ for login. By my understanding form sends its data to
https://login.sectoralarm.com/u/login and it redirects to
https://login.sectoralarm.com/authorize/resume and its redirect to country spesific url
https://omatsivut.sectoralarm.fi/
each request include "state" property what is some kind session hash or something.
from omatsivut it request oauth token from
https://login.sectoralarm.com/oauth/token and that it will use
https://mypagesapi.sectoralarm.net/

And looks that there is no https://login.sectoralarm.com/User/Login so direct url change wont help.

@burner-
Copy link

burner- commented Mar 24, 2024

as additional info. Looks that entrypoint needs to be
https://omatsivut.sectoralarm.fi/login and it make some kind token what is needed to go next steps. Not sure is there some way to bypass all that Firebase crap. Most probably that mobile app get auth token from some other place.

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