csrf tokens and web files

Ten Stars

csrf tokens and web files

Has anyone had any experience authenticating with a web page that uses csrf tokens?  I had a job break after a web site update, and the culprit seems to be these tokens.  I managed to parse the web page and extract the token value on the login page, but including that value with my POST request doesn't seem to be working.


Accepted Solutions
Highlighted
Ten Stars

Re: csrf tokens and web files

So I worked out what was missing. When downloading the page to extract the token, I needed to also store a cookie. Then when authenticating, I both read and saved that cookie. After authenticating, subsequent tFileFetch components worked by just reading the cookie. No need to reference the token.

All Replies
Highlighted
Ten Stars

Re: csrf tokens and web files

So I worked out what was missing. When downloading the page to extract the token, I needed to also store a cookie. Then when authenticating, I both read and saved that cookie. After authenticating, subsequent tFileFetch components worked by just reading the cookie. No need to reference the token.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch