mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 06:59:29 +08:00
feat: add pleroma & misskey api
This commit is contained in:
parent
86661e518a
commit
5a87613452
2 changed files with 43 additions and 2 deletions
|
@ -16,8 +16,6 @@ import { ExternalLink } from "lucide-react";
|
||||||
import { getAuth } from "@/lib/utils";
|
import { getAuth } from "@/lib/utils";
|
||||||
import { AppInfo } from "../FormContainer";
|
import { AppInfo } from "../FormContainer";
|
||||||
import { KeyRound } from "lucide-react";
|
import { KeyRound } from "lucide-react";
|
||||||
import { forwardRef } from "react";
|
|
||||||
import ClientOnly from "../ClientOnly";
|
|
||||||
interface ResultTableProps {
|
interface ResultTableProps {
|
||||||
credentials: Credentials;
|
credentials: Credentials;
|
||||||
appInfo: AppInfo;
|
appInfo: AppInfo;
|
||||||
|
|
|
@ -51,6 +51,49 @@ export const ADMIN_WRITE_SCOPES = [
|
||||||
"admin:write:canonical_email_blocks",
|
"admin:write:canonical_email_blocks",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const PLEROMA_READ_SCOPE = [
|
||||||
|
...READ_SCOPES,
|
||||||
|
"read:backups",
|
||||||
|
"read:chats",
|
||||||
|
"read:securit",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const PLEROMA_WRITE_SCOPE = [
|
||||||
|
...WRITE_SCOPES,
|
||||||
|
"write:chats",
|
||||||
|
"write:security",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const AKKOMA_READ_SCOPE = [
|
||||||
|
...READ_SCOPES,
|
||||||
|
"read:backups",
|
||||||
|
"read:chats",
|
||||||
|
"read:securit",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const AKKOMA_WRITE_SCOPE = [
|
||||||
|
...WRITE_SCOPES,
|
||||||
|
"write:chats",
|
||||||
|
"write:security",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const PLEROMA_ADMIN_READ_SCOPES = [
|
||||||
|
...ADMIN_READ_SCOPES,
|
||||||
|
"admin:read:chats",
|
||||||
|
"admin:read:invites",
|
||||||
|
"admin:read:statuses",
|
||||||
|
"admin:read:follows",
|
||||||
|
"admin:read:media_proxy_caches",
|
||||||
|
];
|
||||||
|
export const PLEROMA_ADMIN_WRITE_SCOPES = [
|
||||||
|
...ADMIN_READ_SCOPES,
|
||||||
|
"admin:write:chats",
|
||||||
|
"admin:write:invites",
|
||||||
|
"admin:write:statuses",
|
||||||
|
"admin:write:follows",
|
||||||
|
"admin:write:media_proxy_caches",
|
||||||
|
];
|
||||||
|
|
||||||
export const scopesInfo: ScopeInfo[] = [
|
export const scopesInfo: ScopeInfo[] = [
|
||||||
{
|
{
|
||||||
method: "read",
|
method: "read",
|
||||||
|
|
Loading…
Reference in a new issue