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

Follow URL redirects and get Cookie from correct provider #18

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

ybizeul
Copy link
Contributor

@ybizeul ybizeul commented Dec 18, 2022

This PR follows the correct redirect from toutsurmoneau.fr to the end provider for the logged in user.

It should get the data from end provider transparently without having to configure your provider.

Apparently, all is needed is to allow redirect during the POST request when getting the cookie, and get the value of the new cookie for the redirected web site.

All subsequent requests can go to toutsurmoneau.fr as long as the cookie has been generated by the provider domain.

It should fix #14 and #16

@Kelesis
Copy link

Kelesis commented Feb 4, 2023

Very good analysis! I confirm this PR is ok for my sub provider too, and should indeed work for any other provider without the need to add any new parameter nor sub URL.
@ooii hope you'll find some time to consider this PR for a merge 🙏

PS: Here is an example of what can be done within Home Assistant with these data.
Screenshot_20230204-173551

@ybizeul
Copy link
Contributor Author

ybizeul commented Mar 6, 2023

@ooii Can you review this PR ?

@ooii ooii merged commit 9010270 into ooii:master Nov 6, 2023
@ooii
Copy link
Owner

ooii commented Nov 6, 2023

@ooii Can you review this PR ?

Of course 😅

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.

Redirect to eauxdesenart.com
3 participants