Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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.

In reply to Re: Loading browser cookies into WWW::Mechanize by Aldebaran
in thread Loading browser cookies into WWW::Mechanize by bakiperl

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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> <u> <ul>
  • 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 intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2023-09-25 02:43 GMT
Find Nodes?
    Voting Booth?

    No recent polls found