[Bug]: Azure SSO with OpenId for Nginx and Librechat #1387
-
What happened?Azure SSO issues = "This site can't provide a secure connection" Steps to Reproducegit clone https://github.com/danny-avila/LibreChat.git changes to .env file. DOMAIN_CLIENT=https://subdomain.domain.ext:3080 UID=1000 ALLOW_SOCIAL_LOGIN=true OpenIdOPENID_CLIENT_ID=xxxxx # Correct Validated OPENID_BUTTON_LABEL=Azure SSO edits to Dockerfile.multi additions to client/nginx.conf ssl_certificate /etc/nginx/ssl/chat.crt; The logs show me hitting the endpoints, and I am am also able to create accounts via the signup page and login, I am just not able to use SSO. What browsers are you seeing the problem on?No response Relevant log outputdocker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
92f972f28edc librechat-client "/docker-entrypoint.…" 19 minutes ago Up 19 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp LibreChat-NGINX
8604f66ad63d ghcr.io/danny-avila/librechat-dev-api:latest "docker-entrypoint.s…" 19 minutes ago Up 19 minutes 0.0.0.0:3080->3080/tcp, :::3080->3080/tcp LibreChat-API
9a2188b283f8 getmeili/meilisearch:v1.0 "tini -- /bin/sh -c …" 19 minutes ago Up 19 minutes 7700/tcp chat-meilisearch
a6037867cc1d mongo
docker logs 92f972f28edc (librechat-client)
" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
$IP_ADDRESS - - [17/Dec/2023:01:08:14 +0000] "GET /api/config HTTP/1.1" 304 0 "https://subdomain.domain.ext/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
From my Browser
This site can't provide a secure connection
subdomain.domain.ext sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, thanks for the report. I've tested Azure through OpenID before and it was working last I checked. I will have to set it up again to double-check, but I'm leaning toward something with your network or the OpenID setup on the Azure end. Did you follow this guide? https://docs.librechat.ai/install/user_auth_system.html#openid-authentication-with-azure-ad
Again this might be a network issue, it's working on my end: https://discord.librechat.ai |
Beta Was this translation helpful? Give feedback.
The fix for this is to remove the ports:
DOMAIN_CLIENT=https://subdomain.domain.ext
DOMAIN_SERVER=https://subdomain.domain.ext
for those using deploy-compose.yaml this is the way.