Open mohammadll opened 1 month ago
hi @mohammadll , i am also trying to login into matrix using keycloak…. but i am getting issue “M_FORBIDDEN: MatrixError: [403] Invalid login token (https://testmatrix.org.com/_matrix/client/v3/login)”
i have setup oidc_providers in matrix homeserver.yaml
can you please help
Edit - i already implemented login with keycloak into matrix and it works fine if i use element web but i need to integrate it in react native and i don’t want to use react native web.
Description
I have integrated Keycloak with Matrix Synapse, and the integration appears to be working correctly. However, I am encountering an issue with user mapping. Specifically, I want to map my existing Synapse users to their corresponding Keycloak users. When I attempt to log in using Keycloak, it seems to try to create a new user instead of mapping to the existing one. For instance, I have a user named
mohammad
in both Synapse and Keycloak, but when I log in with Keycloak, Synapse attempts to create a new user with a username like@mohammad1:matrix.myorg.com
instead of mapping to the existingmohammad
user.My current Configuration:
Steps to reproduce
oidc_providers
within my homeserver.yamlHomeserver
matrix.myorg.com
Synapse Version
1.107.0
Installation Method
Docker (matrixdotorg/synapse)
Database
PostgreSQL
Workers
Single process
Platform
Running through Docker-Compose
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response