Replies: 5 comments 3 replies
|
Confirmed: We should persist and use the curl 'https://m-api02.verisure.com/auth/token' -X 'POST' \
-H 'Content-Length: 0' \
-H 'Cookie: vs-refresh=<refreshToken>'{
"accessToken": "<redacted>",
"accessTokenMaxAgeSeconds": 900,
"refreshToken": "<redacted>",
"refreshTokenMaxAgeSeconds": 63068527
} |
0 replies
|
And we can use the curl 'https://m-api02.verisure.com/graphql' \
-H 'Cookie: vid=<legacyToken>; vs-access=<accessToken>' \
--data-raw $'{
"operationName": "GetInstallation",
"variables": {
"giid": "<redacted>"
},
"query": "query GetInstallation($giid: String!) { installation(giid: $giid) { alias } }"
}'{
"data": {
"installation": {
"alias": "Strandvägen"
}
}
} |
0 replies
|
Be aware that the function for disabling verification on Versiures website seems to only work in English language. Every time i tried at first in Danish, it just reloaded the page. After changing to English it worked perfectly. |
0 replies
|
Progress. I've now tested the MFA flow and can confirm that we still only need the
|
0 replies
|
Just released |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MFA/2FA flow
POST /auth/loginusing basic auth, as we always done to get step up tokenPOST /auth/mfausing step up token cookievs-stepupPOST /auth/mfa/validateusing the same step up token cookie and pass the SMS code as body{"token":"<code>"}to get auth cookiePOST /auth/trustusing the auth cookie to get long lived trust cookievs-trust-<redacted>Suggested solution:
In order to retrieve the
vidcookie, we could provide an interactive cli tool:🙌 Please contribute by sharing your ideas and comments.
All reactions