Repurposed OAuth frontend handling, store the scope
This commit is contained in:
parent
132e08edb8
commit
b18073d5a8
9 changed files with 121 additions and 139 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue