fix: Do not prevent local IP connections to OIDC server

ref #6064
This commit is contained in:
Tom Moor
2023-10-25 20:54:26 -04:00
parent bf6bd3f8d0
commit 5402731ec3

View File

@@ -1,6 +1,9 @@
import crypto from "crypto";
import { addMinutes, subMinutes } from "date-fns";
import type { Context } from "koa";
// Allowed for trusted server<->server connections
// eslint-disable-next-line no-restricted-imports
import fetch from "node-fetch";
import {
StateStoreStoreCallback,
StateStoreVerifyCallback,
@@ -10,7 +13,6 @@ import { getCookieDomain, parseDomain } from "@shared/utils/domains";
import env from "@server/env";
import { Team } from "@server/models";
import { InternalError, OAuthStateMismatchError } from "../errors";
import fetch from "./fetch";
export class StateStore {
key = "state";