1
0
Fork 0

Repurposed OAuth frontend handling, store the scope

This commit is contained in:
Michael 2021-05-13 14:58:55 +00:00
commit b18073d5a8
9 changed files with 121 additions and 139 deletions

View file

@ -37,6 +37,25 @@
*/
return [
"application-view" => [
"fields" => [
"id" => ["application", "id"],
"uid" => ["application-token", "uid"],
"name" => ["application", "name"],
"redirect_uri" => ["application", "redirect_uri"],
"website" => ["application", "website"],
"client_id" => ["application", "client_id"],
"client_secret" => ["application", "client_secret"],
"code" => ["application-token", "code"],
"access_token" => ["application-token", "access_token"],
"created_at" => ["application-token", "created_at"],
"scopes" => ["application-token", "scopes"],
"read" => ["application-token", "read"],
"write" => ["application-token", "write"],
"follow" => ["application-token", "follow"],
],
"query" => "FROM `application-token` INNER JOIN `application` ON `application-token`.`application-id` = `application`.`id`"
],
"post-user-view" => [
"fields" => [
"id" => ["post-user", "id"],