mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 23:00:14 +00:00
Adjust SCIM and SAML impl to use username / nameID, patch LDAP edge-cases
This commit is contained in:
@@ -27,7 +27,7 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {
|
||||
|
||||
passport.use(
|
||||
new LdapStrategy(
|
||||
server.services.ldap.getLDAPConfiguration,
|
||||
server.services.ldap.getLdapPassportOpts,
|
||||
// eslint-disable-next-line
|
||||
async (req, user, cb) => {
|
||||
try {
|
||||
@@ -98,7 +98,7 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {
|
||||
}
|
||||
},
|
||||
handler: async (req) => {
|
||||
const ldap = await server.services.ldap.getLdapCfg({
|
||||
const ldap = await server.services.ldap.getLdapCfgWithPermissionCheck({
|
||||
actor: req.permission.type,
|
||||
actorId: req.permission.id,
|
||||
orgId: req.query.organizationId,
|
||||
|
||||
Reference in New Issue
Block a user