This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Synapse doesn't retrieve CAS attributes when using CAS Protocol 3.0 #15807
Labels
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
z-auth
(Deprecated Label)
Description
I'm trying to limit access to Matrix by relying on CAS SSO attributes but Matrix does not retrieve CAS attributes, only the user ID.
However, when I call CAS from a PHP script on the same machine, I do retrieve the attributes.
I modified the python script
synapse/handlers/cas.py
line 130 to log the CAS response:logging.warn('BODY CAS : %s',body)
Here's what I get, no attributes :
With PHPCAS we can configure the CAS protocol version, and version 3
CAS_VERSION_3_0
must be used to retrieve the attributes. Would there be a problem like this with Matrix?Steps to reproduce
homeserver.yaml
:When we try to connect with an account having the correct
sn
attribute, Matrix returns an error: "You are not allowed to log in here."Homeserver
Private server
Synapse Version
1.85.0
Installation Method
Debian packages from packages.matrix.org
Database
PostgreSQL
Workers
Single process
Platform
KVM / Debian 11
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: