Adjust SCIM and SAML impl to use username / nameID, patch LDAP edge-cases

This commit is contained in:
Tuan Dang
2024-02-25 18:16:26 -08:00
parent 8c31566e17
commit a33c50b75a
15 changed files with 136 additions and 82 deletions
+2 -2
View File
@@ -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,