Hi,
I’m relatively new to Rocke.Chat and while I managed to integrate Rocket.Chat via Oauth2 with our Nextcloud, I’m not able to sign in using my Nextcloud credentials in the iOS app, because there is no Nextcloud button.
What am I doing wrong!?
Thank you for your help in advance,
Markus
Or maybe to say it in other words: How do I sign in using the iOS-App with my Nextcloud-Account? Is it possible at all like it is in a browser?
-Markus
Anybody?
I’m wonderung what’s wrong with my question?
Same problem here, tested in different iOS devices…
Since this comes up high when searching, related issue (including workaround):
opened 06:14AM - 12 May 20 UTC
🎉 feature
## Describe the bug
In web client (mobile and desktop) I have the button but no… t in the android app
## Screenshots
Web login:

Android:

## Devices and Versions
Your Rocket.Chat.Android version: 4.6.4
Your Rocket.Chat Server version: 3.1.1 (stable 3.x snap channel)
Mobile device model and OS version: OnePlus 6T Android 10
and not quite as related, but possibly interesting:
opened 03:13PM - 11 Jun 19 UTC
<!--
Thanks for opening an issue! A few things to keep in mind:
- Before rep… orting a bug, please try reproducing your issue with the latest version.
- Please verify that the bug is related to the Rocket.Chat Desktop app, and NOT the
main web app by testing in Chrome/Firefox.
- If the issue occurs in the browser, report to github.com/RocketChat/Rocket.Chat instead
-->
## My Setup
- Operating System: OSX 10.14, Windows, Ubuntu
- App Version: 2.15.3
- Installation type: dmg, exe, snap
- [x] I have tested with the latest version
- [x] I can simulate the issue easily
## Description
I'm using Nextcloud as a custom Oauth2 client for Rocket.Chat. The login works in the IOS app and browser, but not in the desktop app. In the last step, when I'm granting access to Rocket.Chat, I get the message "Access forbidden State token does not match" from Nextcloud.
<img width="338" alt="bild" src="https://user-images.githubusercontent.com/5712075/59282760-b81eed00-8c69-11e9-8bab-f98bf743b1e9.png">
These are my custom OAuth settings in Rocket.Chat:
* Callback URL: https://example.com/_oauth/nextcloud
* URL: https://example.com
* Token path: https://example.com/apps/oauth2/api/v1/token
* Token sent via: Header
* Identity Token Sent Via: Same as Token Sent Via
* Identity Path: https://example.com/ocs/v2.php/cloud/user?format=json
* Authorize Path: https://example.com/apps/oauth2/authorize
* Scope: openid
* Param Name for access token: access_token
* Id: my id
* Secret: my secret id
* Login style: Popup
* Username field: osc.data.id
* Roles/groups field name: roles
### Current Behavior
When using Nextcloud to log in, the app opens a popup window as expected. But I get redirected from the app to the browser in the last step when I grant Rocket.Chat access to Nextcloud, and that is when the error occurs.
### Expected Behavior
The login should not redirect me to the browser, and as in the IOS app, I should be logged in to the app once I grant Rocket.Chat access to my Nextcloud account.
Please go and add +1 to the original issue.
Rocket.Chat is growing fast so we should soon have more resources to look at some of these features.