mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 19:12:11 +00:00
d8d5220948
## Description: Complete: - Add support for cookie-based auth (ref https://github.com/openfrontio/infra/pull/83) - Restrict game server API access to users with a specific flare - Restrict join game to users with a valid token and an allowed flare - Unauthorized landing page - Token cache - Destroy token cookie on logout ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors
20 lines
418 B
TypeScript
20 lines
418 B
TypeScript
import { GameEnv } from "./Config";
|
|
import { DefaultServerConfig } from "./DefaultConfig";
|
|
|
|
export const preprodConfig = new (class extends DefaultServerConfig {
|
|
env(): GameEnv {
|
|
return GameEnv.Preprod;
|
|
}
|
|
numWorkers(): number {
|
|
return 2;
|
|
}
|
|
jwtAudience(): string {
|
|
return "openfront.dev";
|
|
}
|
|
allowedFlares(): string[] | undefined {
|
|
return [
|
|
// "access:openfront.dev"
|
|
];
|
|
}
|
|
})();
|