mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
This PR contains the necessary work to make Outline an OAuth provider including: - OAuth app registration - OAuth app management - Private / public apps (Public in cloud only) - Full OAuth 2.0 spec compatible authentication flow - Granular scopes - User token management screen in settings - Associated API endpoints for programatic access
22 lines
540 B
TypeScript
22 lines
540 B
TypeScript
import { z } from "zod";
|
|
import { BaseSchema } from "@server/routes/api/schema";
|
|
|
|
export const OAuthAuthenticationsListSchema = BaseSchema.extend({
|
|
body: z.object({}),
|
|
});
|
|
|
|
export type OAuthAuthenticationsListReq = z.infer<
|
|
typeof OAuthAuthenticationsListSchema
|
|
>;
|
|
|
|
export const OAuthAuthenticationsDeleteSchema = BaseSchema.extend({
|
|
body: z.object({
|
|
oauthClientId: z.string(),
|
|
scope: z.array(z.string()).optional(),
|
|
}),
|
|
});
|
|
|
|
export type OAuthAuthenticationsDeleteReq = z.infer<
|
|
typeof OAuthAuthenticationsDeleteSchema
|
|
>;
|