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

Avoid captcha problem and more ! #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

odannis
Copy link

@odannis odannis commented Sep 25, 2022

This allows to avoid some captcha problem if the two cookies : __Secure-refresh-account-token, datadomeare well configured.

The cookies obtained from a request with __Secure-refresh-account-token will allow us to book ticket also !!

@sonarcloud
Copy link

sonarcloud bot commented Sep 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@odannis odannis mentioned this pull request Sep 25, 2022
@corentios
Copy link

corentios commented Nov 22, 2022

Hello @odannis, how do you obtain the __Secure-refresh-account-token ?
I have only datadome in my cookies with the POST | https://www.sncf-connect.com/bff/api/v1/itineraries

Maybe it had changed ?

@odannis
Copy link
Author

odannis commented Dec 1, 2022

You need to be connected to see this token, it is actualized after each request POST | https://www.sncf-connect.com/bff/api/v1/web-refresh/reauthenticate and corresponds more or less to your password.

If you inspect the sncf-connect webpage on firefox (right click + inspecter), two choices :

  1. you can go in the "Stockage" onglet, than "Cookie" on the right, than "https://sncf-connect.com". And here you will find the cookie __Secure-refresh-account-token
  2. You inspect the request POST | https://www.sncf-connect.com/bff/api/v1/itineraries but you need to be connected with your personal account.

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

Successfully merging this pull request may close these issues.

None yet

2 participants