|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.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link
or How to display code and escape characters
are good places to start.