Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove unused code

Thiago Araujo da Silva11af1bf3945d
diff --git a/backend/src/server/routes/v1/oauth-router.ts b/backend/src/server/routes/v1/oauth-router.ts
index fadfb7ac79..4e6bbcb935 100644
--- a/backend/src/server/routes/v1/oauth-router.ts
+++ b/backend/src/server/routes/v1/oauth-router.ts
@@ -498,7 +498,6 @@ export const registerOAuthRouter = async (server: FastifyZodProvider) => {
return server.services.oauthClient.exchangeToken({
grantType: OauthGrantType.TokenExchange,
subjectToken: req.body.subject_token,
- subjectTokenType: req.body.subject_token_type,
clientId,
clientSecret,
ip: req.realIp,
diff --git a/backend/src/services/oauth-client/oauth-client-types.ts b/backend/src/services/oauth-client/oauth-client-types.ts
index 2232a0f165..36fc71ae34 100644
--- a/backend/src/services/oauth-client/oauth-client-types.ts
+++ b/backend/src/services/oauth-client/oauth-client-types.ts
@@ -93,7 +93,6 @@ export type TOauthTokenExchangeDTO = {
| {
grantType: OauthGrantType.TokenExchange;
subjectToken: string;
- subjectTokenType: OauthTokenType;
ip: string;
userAgent?: string;
}
diff --git a/backend/src/services/oauth-client/oauth-token-exchange-fns.ts b/backend/src/services/oauth-client/oauth-token-exchange-fns.ts
index 6deaa97628..e223417055 100644
--- a/backend/src/services/oauth-client/oauth-token-exchange-fns.ts
+++ b/backend/src/services/oauth-client/oauth-token-exchange-fns.ts
@@ -102,7 +102,7 @@ const getJwksClient = (jwksUri: string) =>
});
});
-export type TOidcTrustAnchor = {
+type TOidcTrustAnchor = {
issuer: string;
jwksUri: string;
algorithm: string;
diff --git a/docs/docs.json b/docs/docs.json
index 8d4f1a0d53..ebb00da7fe 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -4550,10 +4550,6 @@
"source": "/documentation/platform/oauth-applications",
"destination": "/documentation/platform/oauth-applications/overview"
},
- {
- "source": "/documentation/platform/oauth-token-exchange",
- "destination": "/documentation/platform/oauth-applications/token-exchange"
- },
{
"source": "/integrations/platforms/docker-intro",
"destination": "/integrations/platforms/docker"