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

Site config with multiple dependent login_extra_fields #271

Open
ghost opened this issue Nov 13, 2021 · 0 comments
Open

Site config with multiple dependent login_extra_fields #271

ghost opened this issue Nov 13, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 13, 2021

I'm trying to authenticate with a website that requires two additional fields (_csrf and login_ticket, both changing with each request). The following naïve solutions disregards the dependence of the values:

login_extra_fields: login_ticket=@=xpath('//input[@name="login_ticket"]/@value', request_html('https://id.sueddeutsche.de/login'))
login_extra_fields: _csrf=@=xpath('//form[@id="login-form"]//input[@name="_csrf"]/@value', request_html('https://id.sueddeutsche.de/login'))

I couldn't find a configuration-based approach that allows implementing either caching the downloaded page or setting both values at once. Did I miss something here? If not, what's the best way to go about this in your opinion?

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

0 participants