mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
Merge remote-tracking branch 'origin/main' into tommoor/chat-provider-interface
# Conflicts: # server/utils/PluginManager.ts
This commit is contained in:
465 files changed
+6055
-11336
No files matched your search
@@ -83,7 +83,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) {
|
||||
tenant: env.AZURE_TENANT_ID ? env.AZURE_TENANT_ID : undefined,
|
||||
passReqToCallback: true,
|
||||
resource: env.AZURE_RESOURCE_APP_ID,
|
||||
// @ts-expect-error StateStore
|
||||
// @ts-expect-error Strategy typings target Express and do not match koa-passport usage
|
||||
store: new StateStore(),
|
||||
scope: scopes,
|
||||
},
|
||||
|
||||
@@ -51,7 +51,7 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) {
|
||||
clientSecret: env.DISCORD_CLIENT_SECRET,
|
||||
passReqToCallback: true,
|
||||
scope,
|
||||
// @ts-expect-error custom state store
|
||||
// @ts-expect-error Strategy typings target Express and do not match koa-passport usage
|
||||
store: new StateStore(),
|
||||
state: true,
|
||||
callbackURL: `${env.URL}/auth/${config.id}.callback`,
|
||||
|
||||
@@ -50,7 +50,7 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) {
|
||||
clientSecret: env.GOOGLE_CLIENT_SECRET,
|
||||
callbackURL: `${env.URL}/auth/${config.id}.callback`,
|
||||
passReqToCallback: true,
|
||||
// @ts-expect-error StateStore
|
||||
// @ts-expect-error Strategy typings target Express and do not match koa-passport usage
|
||||
store: new StateStore(),
|
||||
scope: scopes,
|
||||
},
|
||||
|
||||
@@ -63,7 +63,7 @@ export function createOIDCRouter(
|
||||
callbackURL: `${env.URL}/auth/${config.id}.callback`,
|
||||
passReqToCallback: true,
|
||||
scope: env.OIDC_SCOPES,
|
||||
// @ts-expect-error custom state store
|
||||
// @ts-expect-error Strategy typings target Express and do not match koa-passport usage
|
||||
store: new StateStore(endpoints.pkce),
|
||||
state: true,
|
||||
pkce: endpoints.pkce ?? false,
|
||||
|
||||
@@ -349,7 +349,6 @@ router.post(
|
||||
const { verified, authenticationInfo } = verification;
|
||||
|
||||
if (verified && authenticationInfo) {
|
||||
// Update counter
|
||||
passkey.counter = authenticationInfo.newCounter;
|
||||
passkey.lastActiveAt = new Date();
|
||||
await passkey.save({ silent: true });
|
||||
|
||||
@@ -623,7 +623,6 @@ export default class PostgresSearchProvider extends BaseSearchProvider {
|
||||
return sequelizeReadOnly.transaction(
|
||||
(transaction) =>
|
||||
Document.unscoped().count({
|
||||
// @ts-expect-error Types are incorrect for count
|
||||
replacements,
|
||||
where,
|
||||
transaction,
|
||||
|
||||
@@ -54,7 +54,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) {
|
||||
clientSecret: env.SLACK_CLIENT_SECRET,
|
||||
callbackURL: SlackUtils.callbackUrl(),
|
||||
passReqToCallback: true,
|
||||
// @ts-expect-error StateStore
|
||||
// @ts-expect-error Strategy typings target Express and do not match koa-passport usage
|
||||
store: new StateStore(),
|
||||
scope: scopes,
|
||||
},
|
||||
|
||||
@@ -8,8 +8,8 @@ PluginManager.add([
|
||||
...config,
|
||||
type: Hook.Settings,
|
||||
value: {
|
||||
group: "Workspace",
|
||||
after: "Shared Links",
|
||||
group: "Developer",
|
||||
after: "Applications",
|
||||
icon: Icon,
|
||||
description:
|
||||
"Automate downstream workflows with real-time JSON POSTs, subscribe to events in Outline so external systems can react instantly.",
|
||||
|
||||
@@ -65,7 +65,6 @@ router.post(
|
||||
() =>
|
||||
WebhookSubscription.count({
|
||||
where,
|
||||
// @ts-expect-error Types are incorrect for count
|
||||
replacements,
|
||||
}) as unknown as Promise<number>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user