Skip to content

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

docs(api-reference/organizations): document SSO configuration endpoints

Daniel Hougaardabfc5736fd98
diff --git a/backend/src/ee/routes/v1/ldap-router.ts b/backend/src/ee/routes/v1/ldap-router.ts
index 57c5736df5..7c520e2ab8 100644
--- a/backend/src/ee/routes/v1/ldap-router.ts
+++ b/backend/src/ee/routes/v1/ldap-router.ts
@@ -17,6 +17,7 @@ import { z } from "zod";
import { LdapGroupMapsSchema } from "@app/db/schemas";
import { TLDAPConfig } from "@app/ee/services/ldap-config/ldap-config-types";
import { isValidLdapFilter, searchGroups } from "@app/ee/services/ldap-config/ldap-fns";
+import { ApiDocsTags, LdapSso } from "@app/lib/api-docs";
import { getConfig } from "@app/lib/config/env";
import { BadRequestError } from "@app/lib/errors";
import { logger } from "@app/lib/logger";
@@ -132,10 +133,18 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: readLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.LdapSso],
+ description: "Get LDAP config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
querystring: z.object({
- organizationId: z.string().trim()
+ organizationId: z.string().trim().describe(LdapSso.GET_CONFIG.organizationId)
}),
response: {
200: z.object({
@@ -172,23 +181,32 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.LdapSso],
+ description: "Create LDAP config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z.object({
- organizationId: z.string().trim(),
- isActive: z.boolean(),
- url: z.string().trim(),
- bindDN: z.string().trim(),
- bindPass: z.string().trim(),
- uniqueUserAttribute: z.string().trim().default("uidNumber"),
- searchBase: z.string().trim(),
- searchFilter: z.string().trim().default("(uid={{username}})"),
- groupSearchBase: z.string().trim(),
+ organizationId: z.string().trim().describe(LdapSso.CREATE_CONFIG.organizationId),
+ isActive: z.boolean().describe(LdapSso.CREATE_CONFIG.isActive),
+ url: z.string().trim().describe(LdapSso.CREATE_CONFIG.url),
+ bindDN: z.string().trim().describe(LdapSso.CREATE_CONFIG.bindDN),
+ bindPass: z.string().trim().describe(LdapSso.CREATE_CONFIG.bindPass),
+ uniqueUserAttribute: z.string().trim().default("uidNumber").describe(LdapSso.CREATE_CONFIG.uniqueUserAttribute),
+ searchBase: z.string().trim().describe(LdapSso.CREATE_CONFIG.searchBase),
+ searchFilter: z.string().trim().default("(uid={{username}})").describe(LdapSso.CREATE_CONFIG.searchFilter),
+ groupSearchBase: z.string().trim().describe(LdapSso.CREATE_CONFIG.groupSearchBase),
groupSearchFilter: z
.string()
.trim()
- .default("(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))"),
- caCert: z.string().trim().default("")
+ .default("(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))")
+ .describe(LdapSso.CREATE_CONFIG.groupSearchFilter),
+ caCert: z.string().trim().default("").describe(LdapSso.CREATE_CONFIG.caCert)
}),
response: {
200: SanitizedLdapConfigSchema
@@ -214,23 +232,31 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.LdapSso],
+ description: "Update LDAP config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z
.object({
- isActive: z.boolean(),
- url: z.string().trim(),
- bindDN: z.string().trim(),
- bindPass: z.string().trim(),
- uniqueUserAttribute: z.string().trim(),
- searchBase: z.string().trim(),
- searchFilter: z.string().trim(),
- groupSearchBase: z.string().trim(),
- groupSearchFilter: z.string().trim(),
- caCert: z.string().trim()
+ isActive: z.boolean().describe(LdapSso.UPDATE_CONFIG.isActive),
+ url: z.string().trim().describe(LdapSso.UPDATE_CONFIG.url),
+ bindDN: z.string().trim().describe(LdapSso.UPDATE_CONFIG.bindDN),
+ bindPass: z.string().trim().describe(LdapSso.UPDATE_CONFIG.bindPass),
+ uniqueUserAttribute: z.string().trim().describe(LdapSso.UPDATE_CONFIG.uniqueUserAttribute),
+ searchBase: z.string().trim().describe(LdapSso.UPDATE_CONFIG.searchBase),
+ searchFilter: z.string().trim().describe(LdapSso.UPDATE_CONFIG.searchFilter),
+ groupSearchBase: z.string().trim().describe(LdapSso.UPDATE_CONFIG.groupSearchBase),
+ groupSearchFilter: z.string().trim().describe(LdapSso.UPDATE_CONFIG.groupSearchFilter),
+ caCert: z.string().trim().describe(LdapSso.UPDATE_CONFIG.caCert)
})
.partial()
- .merge(z.object({ organizationId: z.string() })),
+ .merge(z.object({ organizationId: z.string().trim().describe(LdapSso.UPDATE_CONFIG.organizationId) })),
response: {
200: SanitizedLdapConfigSchema
}
diff --git a/backend/src/ee/routes/v1/oidc-router.ts b/backend/src/ee/routes/v1/oidc-router.ts
index 1bfc4d6966..520a94c52e 100644
--- a/backend/src/ee/routes/v1/oidc-router.ts
+++ b/backend/src/ee/routes/v1/oidc-router.ts
@@ -13,6 +13,7 @@ import { z } from "zod";
import { OidcConfigsSchema } from "@app/db/schemas";
import { OIDCConfigurationType, OIDCJWTSignatureAlgorithm } from "@app/ee/services/oidc/oidc-config-types";
+import { ApiDocsTags, OidcSSo } from "@app/lib/api-docs";
import { getConfig } from "@app/lib/config/env";
import { authRateLimit, readLimit, writeLimit } from "@app/server/config/rateLimiter";
import { verifyAuth } from "@app/server/plugins/auth/verify-auth";
@@ -153,10 +154,18 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: readLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.OidcSso],
+ description: "Get OIDC config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
querystring: z.object({
- orgSlug: z.string().trim()
+ orgSlug: z.string().trim().describe(OidcSSo.GET_CONFIG.orgSlug)
}),
response: {
200: SanitizedOidcConfigSchema.pick({
@@ -200,8 +209,16 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.OidcSso],
+ description: "Update OIDC config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z
.object({
allowedEmailDomains: z
@@ -216,19 +233,23 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
.split(",")
.map((id) => id.trim())
.join(", ");
- }),
- discoveryURL: z.string().trim(),
- configurationType: z.nativeEnum(OIDCConfigurationType),
- issuer: z.string().trim(),
- authorizationEndpoint: z.string().trim(),
- jwksUri: z.string().trim(),
- tokenEndpoint: z.string().trim(),
- userinfoEndpoint: z.string().trim(),
- clientId: z.string().trim(),
- clientSecret: z.string().trim(),
- isActive: z.boolean(),
- manageGroupMemberships: z.boolean().optional(),
- jwtSignatureAlgorithm: z.nativeEnum(OIDCJWTSignatureAlgorithm).optional()
+ })
+ .describe(OidcSSo.UPDATE_CONFIG.allowedEmailDomains),
+ discoveryURL: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.discoveryURL),
+ configurationType: z.nativeEnum(OIDCConfigurationType).describe(OidcSSo.UPDATE_CONFIG.configurationType),
+ issuer: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.issuer),
+ authorizationEndpoint: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.authorizationEndpoint),
+ jwksUri: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.jwksUri),
+ tokenEndpoint: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.tokenEndpoint),
+ userinfoEndpoint: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.userinfoEndpoint),
+ clientId: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.clientId),
+ clientSecret: z.string().trim().describe(OidcSSo.UPDATE_CONFIG.clientSecret),
+ isActive: z.boolean().describe(OidcSSo.UPDATE_CONFIG.isActive),
+ manageGroupMemberships: z.boolean().optional().describe(OidcSSo.UPDATE_CONFIG.manageGroupMemberships),
+ jwtSignatureAlgorithm: z
+ .nativeEnum(OIDCJWTSignatureAlgorithm)
+ .optional()
+ .describe(OidcSSo.UPDATE_CONFIG.jwtSignatureAlgorithm)
})
.partial()
.merge(z.object({ orgSlug: z.string() })),
@@ -267,8 +288,16 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.OidcSso],
+ description: "Create OIDC config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z
.object({
allowedEmailDomains: z
@@ -283,23 +312,34 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
.split(",")
.map((id) => id.trim())
.join(", ");
- }),
- configurationType: z.nativeEnum(OIDCConfigurationType),
- issuer: z.string().trim().optional().default(""),
- discoveryURL: z.string().trim().optional().default(""),
- authorizationEndpoint: z.string().trim().optional().default(""),
- jwksUri: z.string().trim().optional().default(""),
- tokenEndpoint: z.string().trim().optional().default(""),
- userinfoEndpoint: z.string().trim().optional().default(""),
- clientId: z.string().trim(),
- clientSecret: z.string().trim(),
- isActive: z.boolean(),
- orgSlug: z.string().trim(),
- manageGroupMemberships: z.boolean().optional().default(false),
+ })
+ .describe(OidcSSo.CREATE_CONFIG.allowedEmailDomains),
+ configurationType: z.nativeEnum(OIDCConfigurationType).describe(OidcSSo.CREATE_CONFIG.configurationType),
+ issuer: z.string().trim().optional().default("").describe(OidcSSo.CREATE_CONFIG.issuer),
+ discoveryURL: z.string().trim().optional().default("").describe(OidcSSo.CREATE_CONFIG.discoveryURL),
+ authorizationEndpoint: z
+ .string()
+ .trim()
+ .optional()
+ .default("")
+ .describe(OidcSSo.CREATE_CONFIG.authorizationEndpoint),
+ jwksUri: z.string().trim().optional().default("").describe(OidcSSo.CREATE_CONFIG.jwksUri),
+ tokenEndpoint: z.string().trim().optional().default("").describe(OidcSSo.CREATE_CONFIG.tokenEndpoint),
+ userinfoEndpoint: z.string().trim().optional().default("").describe(OidcSSo.CREATE_CONFIG.userinfoEndpoint),
+ clientId: z.string().trim().describe(OidcSSo.CREATE_CONFIG.clientId),
+ clientSecret: z.string().trim().describe(OidcSSo.CREATE_CONFIG.clientSecret),
+ isActive: z.boolean().describe(OidcSSo.CREATE_CONFIG.isActive),
+ orgSlug: z.string().trim().describe(OidcSSo.CREATE_CONFIG.orgSlug),
+ manageGroupMemberships: z
+ .boolean()
+ .optional()
+ .default(false)
+ .describe(OidcSSo.CREATE_CONFIG.manageGroupMemberships),
jwtSignatureAlgorithm: z
.nativeEnum(OIDCJWTSignatureAlgorithm)
.optional()
.default(OIDCJWTSignatureAlgorithm.RS256)
+ .describe(OidcSSo.CREATE_CONFIG.jwtSignatureAlgorithm)
})
.superRefine((data, ctx) => {
if (data.configurationType === OIDCConfigurationType.CUSTOM) {
diff --git a/backend/src/ee/routes/v1/saml-router.ts b/backend/src/ee/routes/v1/saml-router.ts
index c8395d6087..6f220c9cb7 100644
--- a/backend/src/ee/routes/v1/saml-router.ts
+++ b/backend/src/ee/routes/v1/saml-router.ts
@@ -13,6 +13,7 @@ import { FastifyRequest } from "fastify";
import { z } from "zod";
import { SamlProviders, TGetSamlCfgDTO } from "@app/ee/services/saml-config/saml-config-types";
+import { ApiDocsTags, SamlSso } from "@app/lib/api-docs";
import { getConfig } from "@app/lib/config/env";
import { BadRequestError } from "@app/lib/errors";
import { logger } from "@app/lib/logger";
@@ -262,10 +263,18 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: readLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.SamlSso],
+ description: "Get SAML config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
querystring: z.object({
- organizationId: z.string().trim()
+ organizationId: z.string().trim().describe(SamlSso.GET_CONFIG.organizationId)
}),
response: {
200: z
@@ -302,15 +311,23 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.SamlSso],
+ description: "Create SAML config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z.object({
- organizationId: z.string(),
- authProvider: z.nativeEnum(SamlProviders),
- isActive: z.boolean(),
- entryPoint: z.string(),
- issuer: z.string(),
- cert: z.string()
+ organizationId: z.string().trim().describe(SamlSso.CREATE_CONFIG.organizationId),
+ authProvider: z.nativeEnum(SamlProviders).describe(SamlSso.CREATE_CONFIG.authProvider),
+ isActive: z.boolean().describe(SamlSso.CREATE_CONFIG.isActive),
+ entryPoint: z.string().trim().describe(SamlSso.CREATE_CONFIG.entryPoint),
+ issuer: z.string().trim().describe(SamlSso.CREATE_CONFIG.issuer),
+ cert: z.string().trim().describe(SamlSso.CREATE_CONFIG.cert)
}),
response: {
200: SanitizedSamlConfigSchema
@@ -341,18 +358,26 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: writeLimit
},
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
+ hide: false,
+ tags: [ApiDocsTags.SamlSso],
+ description: "Update SAML config",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
body: z
.object({
- authProvider: z.nativeEnum(SamlProviders),
- isActive: z.boolean(),
- entryPoint: z.string(),
- issuer: z.string(),
- cert: z.string()
+ authProvider: z.nativeEnum(SamlProviders).describe(SamlSso.UPDATE_CONFIG.authProvider),
+ isActive: z.boolean().describe(SamlSso.UPDATE_CONFIG.isActive),
+ entryPoint: z.string().trim().describe(SamlSso.UPDATE_CONFIG.entryPoint),
+ issuer: z.string().trim().describe(SamlSso.UPDATE_CONFIG.issuer),
+ cert: z.string().trim().describe(SamlSso.UPDATE_CONFIG.cert)
})
.partial()
- .merge(z.object({ organizationId: z.string() })),
+ .merge(z.object({ organizationId: z.string().trim().describe(SamlSso.UPDATE_CONFIG.organizationId) })),
response: {
200: SanitizedSamlConfigSchema
}
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.ts
index 7c7a6f6543..10e9e27188 100644
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@ -66,7 +66,10 @@ export enum ApiDocsTags {
KmsKeys = "KMS Keys",
KmsEncryption = "KMS Encryption",
KmsSigning = "KMS Signing",
- SecretScanning = "Secret Scanning"
+ SecretScanning = "Secret Scanning",
+ OidcSso = "OIDC SSO",
+ SamlSso = "SAML SSO",
+ LdapSso = "LDAP SSO"
}
export const GROUPS = {
@@ -2650,3 +2653,113 @@ export const SecretScanningConfigs = {
content: "The contents of the Secret Scanning Configuration file."
}
};
+
+export const OidcSSo = {
+ GET_CONFIG: {
+ orgSlug: "The slug of the organization to get the OIDC config for."
+ },
+ UPDATE_CONFIG: {
+ orgSlug: "The slug of the organization to update the OIDC config for.",
+ allowedEmailDomains:
+ "A list of allowed email domains that users can use to authenticate with. This field is comma separated.",
+ discoveryURL: "The URL of the OIDC discovery endpoint.",
+ configurationType: "The configuration type to use for the OIDC configuration.",
+ issuer:
+ "The issuer for the OIDC configuration. This is only supported when the OIDC configuration type is set to 'custom'.",
+ authorizationEndpoint:
+ "The authorization endpoint to use for OIDC authorization. This is only supported when the OIDC configuration type is set to 'custom'.",
+ jwksUri: "The URL of the OIDC JWKS endpoint.",
+ tokenEndpoint: "The token endpoint to use for OIDC token exchange.",
+ userinfoEndpoint: "The userinfo endpoint to get user information from the OIDC provider.",
+ clientId: "The client ID to use for OIDC authentication.",
+ clientSecret: "The client secret to use for OIDC authentication.",
+ isActive: "Whether the OIDC configuration is active.",
+ manageGroupMemberships:
+ "Whether to manage group memberships for the OIDC configuration. If enabled, users will automatically be assigned groups when they sign in or are added to a group in the OIDC provider.",
+ jwtSignatureAlgorithm: "The algorithm to use for JWT signature verification."
+ },
+ CREATE_CONFIG: {
+ orgSlug: "The slug of the organization to create the OIDC config for.",
+ allowedEmailDomains:
+ "A list of allowed email domains that users can use to authenticate with. This field is comma separated.",
+ discoveryURL: "The URL of the OIDC discovery endpoint.",
+ configurationType: "The configuration type to use for the OIDC configuration.",
+ issuer:
+ "The issuer for the OIDC configuration. This is only supported when the OIDC configuration type is set to 'custom'.",
+ authorizationEndpoint:
+ "The authorization endpoint to use for OIDC authorization. This is only supported when the OIDC configuration type is set to 'custom'.",
+ jwksUri: "The URL of the OIDC JWKS endpoint.",
+ tokenEndpoint: "The token endpoint to use for OIDC token exchange.",
+ userinfoEndpoint: "The userinfo endpoint to get user information from the OIDC provider.",
+ clientId: "The client ID to use for OIDC authentication.",
+ clientSecret: "The client secret to use for OIDC authentication.",
+ isActive: "Whether the OIDC configuration is active.",
+ manageGroupMemberships:
+ "Whether to manage group memberships for the OIDC configuration. If enabled, users will automatically be assigned groups when they sign in or are added to a group in the OIDC provider.",
+ jwtSignatureAlgorithm: "The algorithm to use for JWT signature verification."
+ }
+};
+
+export const SamlSso = {
+ GET_CONFIG: {
+ organizationId: "The ID of the organization to get the SAML config for."
+ },
+ UPDATE_CONFIG: {
+ organizationId: "The ID of the organization to update the SAML config for.",
+ authProvider: "The authentication provider to use for SAML authentication.",
+ isActive: "Whether the SAML configuration is active.",
+ entryPoint:
+ "The entry point for the SAML authentication. This is the URL that the user will be redirected to after they have authenticated with the SAML provider.",
+ issuer: "The SAML provider issuer URL or entity ID.",
+ cert: "The certificate to use for SAML authentication."
+ },
+ CREATE_CONFIG: {
+ organizationId: "The ID of the organization to create the SAML config for.",
+ authProvider: "The authentication provider to use for SAML authentication.",
+ isActive: "Whether the SAML configuration is active.",
+ entryPoint:
+ "The entry point for the SAML authentication. This is the URL that the user will be redirected to after they have authenticated with the SAML provider.",
+ issuer: "The SAML provider issuer URL or entity ID.",
+ cert: "The certificate to use for SAML authentication."
+ }
+};
+
+export const LdapSso = {
+ GET_CONFIG: {
+ organizationId: "The ID of the organization to get the LDAP config for."
+ },
+ CREATE_CONFIG: {
+ organizationId: "The ID of the organization to create the LDAP config for.",
+ isActive: "Whether the LDAP configuration is active.",
+ url: "The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` (for connection over SSL/TLS), etc.",
+ bindDN:
+ "The distinguished name of object to bind when performing the user search such as `cn=infisical,ou=Users,dc=acme,dc=com`",
+ bindPass: "The password to use along with Bind DN when performing the user search.",
+ searchBase: "The base DN to use for the user search such as `ou=Users,dc=acme,dc=com`",
+ uniqueUserAttribute:
+ "The attribute to use as the unique identifier of LDAP users such as `sAMAccountName`, `cn`, `uid`, `objectGUID`. If left blank, defaults to uidNumber",
+ searchFilter:
+ "Template used to construct the LDAP user search filter such as `(uid={{username}})` uses literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.",
+ groupSearchBase: "LDAP search base to use for group membership search such as `ou=Groups,dc=acme,dc=com`",
+ groupSearchFilter:
+ " Template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
+ caCert: "The CA certificate to use when verifying the LDAP server certificate."
+ },
+ UPDATE_CONFIG: {
+ organizationId: "The ID of the organization to update the LDAP config for.",
+ isActive: "Whether the LDAP configuration is active.",
+ url: "The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` (for connection over SSL/TLS), etc.",
+ bindDN:
+ "The distinguished name of object to bind when performing the user search such as `cn=infisical,ou=Users,dc=acme,dc=com`",
+ bindPass: "The password to use along with Bind DN when performing the user search.",
+ uniqueUserAttribute:
+ "The attribute to use as the unique identifier of LDAP users such as `sAMAccountName`, `cn`, `uid`, `objectGUID`. If left blank, defaults to uidNumber",
+ searchFilter:
+ "Template used to construct the LDAP user search filter such as `(uid={{username}})` uses literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.",
+ searchBase: "The base DN to use for the user search such as `ou=Users,dc=acme,dc=com`",
+ groupSearchBase: "LDAP search base to use for group membership search such as `ou=Groups,dc=acme,dc=com`",
+ groupSearchFilter:
+ " Template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
+ caCert: "The CA certificate to use when verifying the LDAP server certificate."
+ }
+};
diff --git a/docs/api-reference/endpoints/organizations/ldap-sso/create-ldap-config.mdx b/docs/api-reference/endpoints/organizations/ldap-sso/create-ldap-config.mdx
new file mode 100644
index 0000000000..3edabd366d
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/ldap-sso/create-ldap-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Create LDAP SSO Config"
+openapi: "POST /api/v1/ldap/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/ldap-sso/get-ldap-config.mdx b/docs/api-reference/endpoints/organizations/ldap-sso/get-ldap-config.mdx
new file mode 100644
index 0000000000..a41669384a
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/ldap-sso/get-ldap-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get LDAP SSO Config"
+openapi: "GET /api/v1/ldap/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/ldap-sso/update-ldap-config.mdx b/docs/api-reference/endpoints/organizations/ldap-sso/update-ldap-config.mdx
new file mode 100644
index 0000000000..ab613728a8
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/ldap-sso/update-ldap-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Update LDAP SSO Config"
+openapi: "PATCH /api/v1/ldap/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/oidc-sso/create-oidc-config.mdx b/docs/api-reference/endpoints/organizations/oidc-sso/create-oidc-config.mdx
new file mode 100644
index 0000000000..6a86d970cb
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/oidc-sso/create-oidc-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Create OIDC Config"
+openapi: "POST /api/v1/sso/oidc/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/oidc-sso/get-oidc-config.mdx b/docs/api-reference/endpoints/organizations/oidc-sso/get-oidc-config.mdx
new file mode 100644
index 0000000000..af62c7d0a6
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/oidc-sso/get-oidc-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get OIDC Config"
+openapi: "GET /api/v1/sso/oidc/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/oidc-sso/update-oidc-config.mdx b/docs/api-reference/endpoints/organizations/oidc-sso/update-oidc-config.mdx
new file mode 100644
index 0000000000..fdafeaf99d
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/oidc-sso/update-oidc-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Update OIDC Config"
+openapi: "PATCH /api/v1/sso/oidc/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/saml-sso/create-saml-config.mdx b/docs/api-reference/endpoints/organizations/saml-sso/create-saml-config.mdx
new file mode 100644
index 0000000000..0a01fb742a
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/saml-sso/create-saml-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Create SAML SSO Config"
+openapi: "POST /api/v1/sso/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/saml-sso/get-saml-config.mdx b/docs/api-reference/endpoints/organizations/saml-sso/get-saml-config.mdx
new file mode 100644
index 0000000000..71c00fb24e
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/saml-sso/get-saml-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get SAML SSO Config"
+openapi: "GET /api/v1/sso/config"
+---
\ No newline at end of file
diff --git a/docs/api-reference/endpoints/organizations/saml-sso/update-saml-config.mdx b/docs/api-reference/endpoints/organizations/saml-sso/update-saml-config.mdx
new file mode 100644
index 0000000000..57067dbd1f
--- /dev/null
+++ b/docs/api-reference/endpoints/organizations/saml-sso/update-saml-config.mdx
@@ -0,0 +1,4 @@
+---
+title: "Update SAML SSO Config"
+openapi: "PATCH /api/v1/sso/config"
+---
\ No newline at end of file
diff --git a/docs/docs.json b/docs/docs.json
index ac9d62a7cc..404ae79a40 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -849,6 +849,30 @@
{
"group": "Organizations",
"pages": [
+ {
+ "group": "OIDC SSO",
+ "pages": [
+ "api-reference/endpoints/organizations/oidc-sso/get-oidc-config",
+ "api-reference/endpoints/organizations/oidc-sso/update-oidc-config",
+ "api-reference/endpoints/organizations/oidc-sso/create-oidc-config"
+ ]
+ },
+ {
+ "group": "LDAP SSO",
+ "pages": [
+ "api-reference/endpoints/organizations/ldap-sso/get-ldap-config",
+ "api-reference/endpoints/organizations/ldap-sso/update-ldap-config",
+ "api-reference/endpoints/organizations/ldap-sso/create-ldap-config"
+ ]
+ },
+ {
+ "group": "SAML SSO",
+ "pages": [
+ "api-reference/endpoints/organizations/saml-sso/get-saml-config",
+ "api-reference/endpoints/organizations/saml-sso/update-saml-config",
+ "api-reference/endpoints/organizations/saml-sso/create-saml-config"
+ ]
+ },
"api-reference/endpoints/organizations/memberships",
"api-reference/endpoints/organizations/update-membership",
"api-reference/endpoints/organizations/delete-membership",
@@ -2089,9 +2113,9 @@
"href": "https://infisical.com"
},
"api": {
- "openapi": "https://app.infisical.com/api/docs/json",
+ "openapi": "https://db056ef4a0a9.ngrok.app/api/docs/json",
"mdx": {
- "server": ["https://app.infisical.com", "http://localhost:8080"]
+ "server": ["http://localhost:8080"]
}
},
"appearance": {