Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

Oauth login failure via ChromeOS Playstore app

Open leeIco3 opened this issue 5 years ago • 21 comments

Description:

When trying to login to to self hosted or open workspace clicking the oauth google login generates the codes and opens in chrome and the request is returned to the app but the app then does nothing with the response, therefore failing to login.

Only seems to happen under Chrome OS using the mobile client via the playstore, have tried beta client and experimental with no success.

Environment Information:

  • Rocket.Chat Server Version:
  • Rocket.Chat App Version:4.19.0.25555
  • Device Name:
  • OS Version: ChromeOS 93.0.4577.69

Steps to reproduce:

  1. Click join a workspace
  2. enter workspace to join or open workspace
  3. click login
  4. click continue with google
  5. browser opens and returns to app
  6. app remains unchanged with "continue with google" option

Expected behavior:

Expect for callback to be handled/received and generate login and proceed.

Actual behavior:

App remains in unauthed state and leaves the button with continue with google inplace (still active and clickable)

Additional context:

I assume the way the oauth is implemented needs to change to handle how chromeos is doing playstore apps now ? Ive tried on multiple chromeOS machines so its not specific to me and even the open workspace setup doesnt work with google login which removes the issue in our selfhosted version.

leeIco3 avatar Sep 14 '21 11:09 leeIco3

we experience a similar (if not the same) issue in the latest iOS build.

miko007 avatar Oct 05 '21 22:10 miko007

I confirm the same issue on android and IOS with custom OAuth...

https://forums.rocket.chat/t/rocket-chat-4-0-android-mobile-app-4-20-0-26005/12329

MaxWaldorf avatar Oct 06 '21 09:10 MaxWaldorf

Hey @leeIco3. Thanks for reporting this. With yours and @MaxWaldorf's comments, we were able to reproduce it and we are working on isolating the issue.

LevyCosta avatar Oct 07 '21 20:10 LevyCosta

same here :(

Versions: server: 4.0.1 app: 4.20.0.26006

tcdev0 avatar Oct 11 '21 13:10 tcdev0

Same with our installation since we updated from 3.18 to 4.0.1, all mobile users both on Android and iOS experience the same issue, mobile app is now completely unusable for our users.

MightyGoldenOctopus avatar Oct 18 '21 14:10 MightyGoldenOctopus

Same with our installation since we updated from 3.18 to 4.0.1, all mobile users both on Android and iOS experience the same issue, mobile app is now completely unusable for our users.

Hi @MightyGoldenOctopus, could you share with us which oAuth you are trying to access?

reinaldonetof avatar Oct 18 '21 14:10 reinaldonetof

Same with our installation since we updated from 3.18 to 4.0.1, all mobile users both on Android and iOS experience the same issue, mobile app is now completely unusable for our users.

Hi @MightyGoldenOctopus, could you share with us which oAuth you are trying to access?

Hey @reinaldonetof, we are trying to access to our Microsoft Azure Active Directory oAuth.

MightyGoldenOctopus avatar Oct 18 '21 14:10 MightyGoldenOctopus

Hey @reinaldonetof, we are trying to access to our Microsoft Azure Active Directory oAuth.

Interesting, so it's a custom oAuth, right? Is it working properly on the web?

reinaldonetof avatar Oct 18 '21 15:10 reinaldonetof

Hey @reinaldonetof, we are trying to access to our Microsoft Azure Active Directory oAuth.

Interesting, so it's a custom oAuth, right? Is it working properly on the web?

Yes it is a custom oAuth. We do not experience any issue with the oAuth on the web browser.

MightyGoldenOctopus avatar Oct 18 '21 15:10 MightyGoldenOctopus

Nice, so it is an enterprise server! Thank you all!

Then, we will add both custom and normal oAuth to our sprint.

reinaldonetof avatar Oct 18 '21 15:10 reinaldonetof

We are running a "normal" (docker, no license or sth) Rocket.Chat instance with auth via custom OAuth2 from Mailcow. We are experiencing the same issue with the latest android app as well as with the latest iOS app. Because of this issue we are having heavy problems in team communication of our community project.

ghost avatar Oct 20 '21 19:10 ghost

We've been working on a fix on the server side. Thanks!

diegolmello avatar Oct 20 '21 19:10 diegolmello

Any ideas when the big is fixed?

birgit-egroupware avatar Oct 22 '21 11:10 birgit-egroupware

@birgit-egroupware It's the PR #23541 in the server repository which is planned to be distributed by the release 4.0.5

MightyGoldenOctopus avatar Oct 25 '21 15:10 MightyGoldenOctopus

thanks!

birgit-egroupware avatar Oct 25 '21 15:10 birgit-egroupware

I can confirm issue is fixed with server version 4.0.5. thanks.

tcdev0 avatar Oct 25 '21 23:10 tcdev0

I also confirm that the fix is working

birgit-egroupware avatar Oct 26 '21 09:10 birgit-egroupware

Amazing. I'll let the issue open, because they might be having trouble with ChromeOS specifically, since the issue was created before v4.

diegolmello avatar Oct 26 '21 12:10 diegolmello

Confirmed fixed here as well.

MaxWaldorf avatar Oct 27 '21 07:10 MaxWaldorf

it is fixed for us in latest upstream

miko007 avatar Oct 27 '21 08:10 miko007