Login prototype
This commit is contained in:
parent
b014f349ae
commit
82003bbe47
11 changed files with 269 additions and 12 deletions
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1415);
|
||||
define('DB_UPDATE_VERSION', 1416);
|
||||
}
|
||||
|
||||
return [
|
||||
|
@ -442,6 +442,20 @@ return [
|
|||
"client_id" => ["UNIQUE", "client_id"]
|
||||
]
|
||||
],
|
||||
"application-token" => [
|
||||
"comment" => "OAuth user token",
|
||||
"fields" => [
|
||||
"application-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["application" => "id"], "comment" => ""],
|
||||
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
|
||||
"code" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
|
||||
"access_token" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
|
||||
"created_at" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "creation time"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["application-id", "uid"],
|
||||
"uid_id" => ["uid", "application-id"],
|
||||
]
|
||||
],
|
||||
"attach" => [
|
||||
"comment" => "file attachments",
|
||||
"fields" => [
|
||||
|
|
|
@ -331,9 +331,9 @@ return [
|
|||
'/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
|
||||
'/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET, R::POST]],
|
||||
],
|
||||
'/oauth/authorize' => [Module\Api\Mastodon\Unimplemented::class, [R::GET]],
|
||||
'/oauth/revoke' => [Module\Api\Mastodon\Unimplemented::class, [R::POST]],
|
||||
'/oauth/token' => [Module\Api\Mastodon\Unimplemented::class, [R::POST]],
|
||||
'/oauth/authorize' => [Module\OAuth\Authorize::class, [R::GET]],
|
||||
'/oauth/revoke' => [Module\OAuth\Revoke::class, [R::POST]],
|
||||
'/oauth/token' => [Module\OAuth\Token::class, [R::POST]],
|
||||
'/objects/{guid}[/{activity}]' => [Module\Objects::class, [R::GET]],
|
||||
|
||||
'/oembed' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue