in reply to Loading browser cookies into WWW::Mechanize

I need help with WWW::Mechanize to automate a login to a page that uses Duo-Authentication. I am able to load the credentials and login but I need to silently pass the second check using the information that is saved in the cookies by the browser (Chrome or any other browser if necessary). Once this is achieved I should be able to things I was able to do before the implementation of the Duo-Authentication.

What does this sound like to me? Duo-Authentication is a new thing connoting dual-authentication, which can be achieved in a variety of ways. I identify Duo with the google toolchain, and it's just like them to lay claim to a semi-word.

Meanwhile, WWW::Mechanize is not new. It is not trimmed out for what the internet has become. What's more, your objective seems to be to bypass this authentication with cookies. Preventing you from what you're attempting is the raison d'etre for duo-authentication.

I don't know what all goes into a cookie, but it's not the data you need for the *next* duo-verification. You could put a lot of cases to rest by posting the URL you are trying to outwit.

  • Comment on Re: Loading browser cookies into WWW::Mechanize

Replies are listed 'Best First'.
Re^2: Loading browser cookies into WWW::Mechanize
by bakiperl (Beadle) on Jul 17, 2021 at 04:01 UTC
    Actually, I have been able to achieve this Duo-authentication login easily with WWW::Mechanize::Chrome, but I could not get WMC to download hyperlinked files (pdf, csv and images) without getting them corrupted and wrapped into html tags.
    This simple download has been automatic with WWW::Mechanize. That's the reason why I want to see if WM can do the same thing as WMC by using the cookies.