LibreChat, ADFS and Certificate #2531
Replies: 3 comments 4 replies
-
Hello @KiS-please ADFS mostly uses SAML based implementation. LibreChat uses OpenID which is different. Normally ADFS should able to do also OpenID. You can find multiple HowTo out their for implementing OpenID - SSO and ADFS. Technically it must be possible. For example here some HowTo's for other ADFS <-> OpenID implementations. https://support.just.social/hc/de/articles/12713877575186-SSO-mit-ADFS-und-OpenID-Connect-OIDC Greetings |
Beta Was this translation helpful? Give feedback.
-
I'm not too versed in this but some quick research seems like OAuth2 is available via ADFS v3. https://stackoverflow.com/questions/72304173/oauth-with-passport-js-for-adfs-instead-of-google If you're having issues with OpenID Connect, it could be that an OAuth2 specific strategy could be needed. Found this example on github, and could use some pointers on setting up ADFS to test it myself: |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. curl -o ~/.npm.certs.pem https://curl.se/ca/cacert.pem Then added an environment variable to the LibreChat service [Service] A little more tweaking and I was up again with a new error. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone.
What happened
I can't configure authorization via ADFS. When I configure OpenID (based on the Azure instructions) and run backend, I get a certificate error: "error: [openidStrategy] unable to get local issuer certificate".
My Setup:
I have LibreChat (v 0.7.0 and v 0.7.1) with MongoDB Replica Set. I also have AD and ADFS servers with their own certificate authority.OS: Ubuntu 22.04. Manual instalation.HAproxy for https.
What I tried:
I added certificates to the system itself - it didn't help.
I added an entry for certificates (root and ADFS) to .npmrc file - it did not help.
cafile=/home/user/certs/adfs_cert.crt
cafile=/home/user/certs/root_cert_auth.crt
I added an entry to disable SSL checking in .npmrc file - it did not help.
strict-ssl=false
Perhaps I do not understand the ADFS authorization setting correctly, this is my first time. But I believe that first I need to get rid of the error: "error: [openidStrategy] unable to get local issuer certificate".
Perhaps someone has already set this up. Any ideas? I will be glad for any help.
Thnx.
Beta Was this translation helpful? Give feedback.
All reactions