2010-11-11 05:49:28 -05:00
|
|
|
<?php
|
2016-02-07 09:11:34 -05:00
|
|
|
|
2017-04-30 00:07:00 -04:00
|
|
|
use Friendica\App;
|
|
|
|
|
2018-01-04 19:42:48 -05:00
|
|
|
function amcd_content()
|
|
|
|
{
|
2017-04-30 00:01:26 -04:00
|
|
|
echo <<< JSON
|
2010-11-11 05:49:28 -05:00
|
|
|
{
|
2010-11-11 17:53:39 -05:00
|
|
|
"version":1,
|
|
|
|
"sessionstatus":{
|
|
|
|
"method":"GET",
|
|
|
|
"path":"/session"
|
|
|
|
},
|
|
|
|
"auth-methods": {
|
2010-11-11 05:49:28 -05:00
|
|
|
"username-password-form": {
|
|
|
|
"connect": {
|
|
|
|
"method":"POST",
|
|
|
|
"path":"/login",
|
|
|
|
"params": {
|
|
|
|
"username":"login-name",
|
|
|
|
"password":"password"
|
2010-11-11 17:53:39 -05:00
|
|
|
},
|
|
|
|
"onsuccess": { "action":"reload" }
|
|
|
|
},
|
|
|
|
"disconnect": {
|
|
|
|
"method":"GET",
|
|
|
|
"path":"\/logout"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"methods": {
|
|
|
|
"username-password-form": {
|
|
|
|
"connect": {
|
|
|
|
"method":"POST",
|
|
|
|
"path":"\/login",
|
|
|
|
"params": {
|
|
|
|
"username":"login-name",
|
|
|
|
"password":"password"
|
|
|
|
},
|
|
|
|
"onsuccess": { "action":"reload" }
|
2010-11-11 05:49:28 -05:00
|
|
|
},
|
|
|
|
"disconnect": {
|
|
|
|
"method":"GET",
|
2010-11-11 17:53:39 -05:00
|
|
|
"path":"\/logout"
|
2010-11-11 05:49:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-30 00:01:26 -04:00
|
|
|
JSON;
|
2018-12-26 00:40:12 -05:00
|
|
|
exit();
|
2018-01-04 19:42:48 -05:00
|
|
|
}
|