ADFS (email can't be blank) #5226
-
Hi! I am struggling with getting AD users to log in to LibreChat passwordless. I have configured LDAP_ and OPENID_ parameters. I have tried different ADFS Issuance Tranform Rules and different LDAP_ parameters changing username vs email values, nothing. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
For a week I have been trying various settings, but must be missing something or it is not possible. I will write all info here, maybe somebody will help me. When doing SSO with ADFS, the into browser is displayed Internal Server Error I will post some config and logs from test setup - they are not edited.
debug.log:
.env:
If I check the ADFS server debug event logs, there is event 1000 about input claims. If I check other openid clients in ADFS server event log, then logs are very similar. I have read, that problem could be that id_token contains only sub claim and no email or any other claims. They should be included in the access_token claims part... Can somebody confirm it? LibreChat docker is with minimal setup - no SSL, no engines. LDAP is configured, but I guess for ADFS I do not need it. ADFS server is configured for automatic login (WIA) so I do not have to insert username and password. What could help me forward - how can I check id_token for what it contains. It is not possible to capture it if the LibreChat application does not log in? Only ADFS transform rule, I need is like this?
|
Beta Was this translation helpful? Give feedback.
-
Little more progress. I learned to view token. If I visit link with app id: Part after "id_token=" I copy and paste to jwt.io for decoding the id_token: { { Now no matter how many rules in the ADFS server I try I cannot manage to change the PAYLOAD fields on the token at all. I understand I need "mail" field/claim. |
Beta Was this translation helpful? Give feedback.
-
@VeiX: I got ADFS to work. The OpenID strategy in LibreChat natively supports this, it's all an ADFS configuration issue. The steps are:
@danny-avila: Shall I provide a more detailed PR to the docs? |
Beta Was this translation helpful? Give feedback.
@VeiX: I got ADFS to work. The OpenID strategy in LibreChat natively supports this, it's all an ADFS configuration issue. The steps are:
@danny-avila: Shall I provide a more detailed PR to the docs?