RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
2.01k stars 1.17k forks source link

SSO - SAML Login does not work #3059

Closed b90g closed 3 years ago

b90g commented 3 years ago

Description:

Loging in via SAML doesnt work, always thrown back to Login button.

Environment Information:

Steps to reproduce:

  1. Entering Server Domain
  2. Clicking Login-Link on Server Page
  3. Loging in via SAML

Expected behavior:

The App saves the session and I am connted to the Server

Actual behavior:

I get back to the Login button which should send me to SAML, a loop.

Additional context:

northway commented 3 years ago

I have the same issue on Android with Rocket.Chat 3.12.3.

emikolajczak commented 3 years ago

Hi, same issue with Custom Oauth (Keycloak). But not for all users. In server logs no entries about problems with login. Same issue on Android and iOS May be related with https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3020 ?

AvTopo commented 3 years ago

Addition to issue owner (on same server) Same issue with: Device Name: Apple iPhone Pro 11 Max OS Version: 14.4.2

skudi commented 3 years ago

same issue, server 3.12.0, android app 4.15.0 is working, 4.16.0 is looping, however sometimes, after few tries it starts. We are using jasig CAS and CAS3.0.

b90g commented 3 years ago

https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/2978/files - sus.

diegolmello commented 3 years ago

Can someone send me a test user to https://open.rocket.chat/direct/diego.mello? It's working on my SAML servers. Thanks.

emikolajczak commented 3 years ago

In my case login working for new created user and some existing. But some users can't log in. After authorization in oAuth (keycloak), back to oAuth button, and after click, back again to button.

diegolmello commented 3 years ago

I'm still trying to reproduce it, but it's working. If you have a reproducible user, send me. I can release a patch right away.

diegolmello commented 3 years ago

Got a reproducible example. I'm on it and I'll keep you posted. Thanks!