• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Autologin problem with IPv6

multikreher

New Pleskian
Hello all,

I am currently working on an automatic login for different Plesk servers for my final project in my apprenticeship.

Everything works as expected only I have one problem!

I make the XML request as described in the documentation. It also works and gives me a token to create a login link.
Request looks like this:

XML:
  <packet version="1.6.9.1">
    <server>
      <create_session>
        <login>${loginData.user}</login>
        <data>
          <user_ip>${loginIp}</user_ip> // in BASE64
          <source_server></source_server>
        </data>
      </create_session>
    </server>
  </packet>

I am currently running the application locally on my pc.

Now about the problem:
I create the login link and it works fine. But when I try to log in to my network at home or via a hotspot with the link, it only redirects me, but does not log me in as usual.
At home my network uses IPv6 by default.

when I force my PC to use IPv4 the link works again as usual.
But now it's getting funny. At work it works with IPv6 too. In addition, the servers are not located locally.

Does anyone have any idea what the problem is?

Thanks for reading :)
 
I have found a way to do it differently. With the help from the user mjauvin and the Rest API!

 
Back
Top