feat: existing user can sign in with sso

This commit is contained in:
prafull-opensignlabs
2024-05-31 11:41:53 +05:30
parent be93e6a214
commit bc5c8cac33
10 changed files with 497 additions and 151 deletions
+2 -9
View File
@@ -18,7 +18,7 @@ import { createTransport } from 'nodemailer';
import { app as v1 } from './cloud/customRoute/v1/apiV1.js';
import { PostHog } from 'posthog-node';
import { useLocal } from './Utils.js';
import { SSOAuth } from './auth/authadapter.js';
let fsAdapter;
if (useLocal !== 'true') {
try {
@@ -147,14 +147,7 @@ export const config = {
google: {
enabled: true,
},
ldap: {
enabled: true,
url: 'ldap://ldap.forumsys.com:389',
suffix: 'dc=example,dc=com',
// dn: 'ou=mathematicians, dc=example, dc=com',
groupCn: 'mathematicians',
groupFilter: '(&(uniqueMember=uid=,dc=example,dc=com)(objectClass=groupOfUniqueNames))',
},
sso: SSOAuth,
},
};
// Client-keys like the javascript key or the .NET key are not necessary with parse-server