csrf tokens and web files

Highlighted
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
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
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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download