RocketChat / Rocket.Chat.Android

Legacy mobile Rocket.Chat client in Kotlin for Android
https://rocket.chat
MIT License
870 stars 553 forks source link

CAS Login adds / to the given login url #2513

Open Kusig opened 5 years ago

Kusig commented 5 years ago

See as well the following issue: https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/1354

Description

Connection via CAS Login page doesn't work anymore. This was working for a long time without problems but with the newest versions of the mobile apps (Android app and Experimental app) there is a problem.

Analysis of our experts showed that since some time, the apps seesm to add a Slash / behind the LoginUrl itself what causes the problem.

eg. in our case the forward address given on login is: "/authservice-radius/login"

But the apps do call then: "/authservice-radius/login/" which doesn't work.

So it looks as within the app there is somewhere a slash added but it shouldn't.

Note that the Desktop app and as well Browser access do work without problems. this only concerns the mobile apps.

Devices and Versions

Androis Samsung S8 with Android 9 but it is on all Android devices a problem. We don't know about iOS.

Your Rocket.Chat.Android version: 4.0.2 Experimental : 1.20.1 Your Rocket.Chat Server version: 2.2.0

Steps to reproduce

1) Configure CAS Login on the server properly (as mentioned above, it works perfect within browser or Desktop App.

2) On Android App login with server address and choos CAS Login, this causes the problem and a error page is shown from the CAS Login server.

reetp commented 5 years ago

https://github.com/RocketChat/Rocket.Chat.Android#important---please-read-this-first

With v4.0.2 you are already on React Native. Please follow up in that repo.

https://rocket.chat/2019/10/11/moving-mobile-apps-to-react/