Auto-login to DA from an external site

Remitur

Verified User
Joined
May 11, 2018
Messages
69
Location
Sežana (Slovenia)
I need to allow a user to login to DA from an external site; here it's explained how to do it using a form like this:

<form action="http://www.domain.com:2222/CMD_LOGIN" method="POST" name="form">
<input type=hidden name=referer value="/">
<input type=hidden name=FAIL_URL value="http://www.domain.com/login_failed.html">
<input type=hidden name=LOGOUT_URL value="http://www.domain.com/logged_out.html">
<input type=hidden name=username value="username">
<input type=hidden name=password value="password">
</form>
<script>
document.form.submit();
</script>

But I can't use forms: I should use just a simple link.

So the question is: there's any way to create a simple link, something like:

https://www.domain.com:2222/?username=myusername?password=mypassword ?

(Note: this link should be used more than one time, so the idea of creating a one-time login URL from the login keys interface does not work...)
 
Use api to create one-time login key.
 
it already exists
Code:
[
'never_expires' => 'no',
    'expiry_timestamp' => time() + 3600,
    'max_uses' => 100, // Counter called before limit access.
    'clear_key' => ' yes'
]

 
Back
Top