Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie compression and splitting for JWT #1651

Merged
Merged
Prev Previous commit
Next Next commit
Linting
Signed-off-by: Jochen Kressin <jochen.kressin-gh@eliatra.com>
  • Loading branch information
jochen-kressin committed Dec 11, 2023
commit a81f796538787c5b7dd15c4a5074fd9ca8e8259f
7 changes: 5 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { schema, TypeOf } from '@osd/config-schema';
import { PluginInitializerContext, PluginConfigDescriptor } from '../../../src/core/server';
import { SecurityPlugin } from './plugin';
import { AuthType } from '../common';
import { JWT_DEFAULT_EXTRA_STORAGE_OPTIONS } from "./auth/types/jwt/jwt_auth";
import { JWT_DEFAULT_EXTRA_STORAGE_OPTIONS } from './auth/types/jwt/jwt_auth';

const validateAuthType = (value: string[]) => {
const supportedAuthTypes = [
Expand Down Expand Up @@ -239,7 +239,10 @@ export const configSchema = schema.object({
defaultValue: JWT_DEFAULT_EXTRA_STORAGE_OPTIONS.cookiePrefix,
minLength: 2,
}),
additional_cookies: schema.number({ min: 1, defaultValue: JWT_DEFAULT_EXTRA_STORAGE_OPTIONS.additionalCookies }),
additional_cookies: schema.number({
min: 1,
defaultValue: JWT_DEFAULT_EXTRA_STORAGE_OPTIONS.additionalCookies,
}),
}),
})
),
Expand Down
Loading