Update activitypub.extend.php
This commit is contained in:
parent
709ab3ca78
commit
3e62896e31
|
@ -1275,8 +1275,18 @@ class _GNUBOARD_ActivityPub {
|
|||
return activitypub_json_encode(activitypub_build_collection($items, "Latest shares"));
|
||||
}
|
||||
|
||||
public static function authorize() {
|
||||
// TODO
|
||||
public static function authorize() { // TODO
|
||||
$result = array();
|
||||
|
||||
$grant_type = $_GET['grant_type'];
|
||||
|
||||
switch ($grant_type) {
|
||||
case "authorization_code": break;
|
||||
case "password": break;
|
||||
case "client_credentials": break;
|
||||
}
|
||||
|
||||
return activitypub_json_encode($result);
|
||||
}
|
||||
|
||||
public static function close() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user