New Website broke my code

All of my code to collect data from my screens is broken due to the redesign. I’m rebuilding it but can’t even get past the first hurdle.

What’s the authentication link to get into the website simulating a form submission?

Previously it was :

https://www.portfolio123.com/login.jsp?Login=Login&LoginPassword=pppppppppp&LoginUsername=uuuuuuu&LoginRememberMe=1&url=index.jsp

Anyone figure it out yet?

We have this issue as well. We are trying to guess but we’re not getting much of anywhere.

There should be a simple way to pass credentials to the server. I’m at a loss right now.

We are aware of the issue and are investigating. Would everyone affected by this mind sending me phone numbers by email? We might need to get in touch personally.

I had this issue even when testing in Dec. See the thread starting here → https://www.portfolio123.com/mvnforum/viewthread_thread,11524#66351

I ended up resorting to saving the login / password in Internet Explorer rather than passing it through every time

Jerome

It is → https://www.portfolio123.com/app/auth

Jerome

Bug report: there is a grey left side panel that appears on IE11 right after login (but not firefox). Cannot get rid of it…
See attachment

Thank you


Right after Login March 2019.pdf (177 KB)

Same problem for me.

The new site (and, in particular, the login page) is using AngularJS on the frontend. Angular supports security features to prevent cross-site request forgery. So there are 2 reasons your automated form submission scripts are likely failing:

  1. The login data is encoded as json, rather than “form-encoded” as it was in the past. (In addition to encoding the form data as json, you must include a header identifying the content-type correctly).

  2. The CSRF/XSRF protection requires that a header named X-XSRF-TOKEN be included in the login request header with a value the same as the XSRF-TOKEN cookie.

These changes represent increased security, which is a good thing, and worth a little work to support.

Automated data collection is not something I have experience with but could Kantu work here?

https://a9t9.com/kantu/x/desktop-automation

Walter

SUPirate,

Thank you for these clues. Are you able to access the site programmatically with the modifications that you propose? I will give this a try tonight.

Again, thanks!

Matt

Hello Scripters

We’ll be releasing a patch to the login process that should make your scripts work without much modifications.

When you login on the new version of the site in a browser the url takes you to https://www.portfolio123.com/app/auth, but for scripts you’ll have to use the old url: https://www.portfolio123.com/login.jsp". POST your credentials to that url. The response from that request will not be html - it’s just “OK” on successful login or the error message on failure.

hope this helps,
ted

Beautiful. That’s perfect. Thanks guys.

Any idea when the login process patch will go live? Or has it already and I’m doing something wrong?