Rocket.chat.reactnative: [NEW] NextCloud auth

Created on 12 May 2020  路  11Comments  路  Source: RocketChat/Rocket.Chat.ReactNative

Describe the bug

In web client (mobile and desktop) I have the button but not in the android app

Screenshots

Web login:
image

Android:
signal-attachment-2020-05-12-170829

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

馃帀 feature

Most helpful comment

It could be very cool to have this fonctionality !

All 11 comments

This repo is deprecated: https://github.com/RocketChat/Rocket.Chat.Android#important---please-read-this-first
Transferring to new one.

It doesn't work on iOS as well.
Nextcloud auth is not implemented yet.
Can you ping me on https://open.rocket.chat?
I'm @diego.mello.
Let's implement this asap.
Thanks.

It could be very cool to have this fonctionality !

I had to go forward and Nextcloud can be configured as Custom OAuth, which is supported by the App.

  1. Firstly create a Custom OAuth in Rocket Chat server settings, copy the Callback URL
  2. Create a new OAuth Client in Nextcloid Security settings, use the Callback URL.
  3. Copy Id and Secret from Nextcloud
  4. In Rocket Chat Server configure the Custom OAuth provider as follows:

    • Enable: checked

    • URL: [your nexcloud base url]

    • Token Path: /apps/oauth2/api/v1/token

    • Token Sent Via: Header

    • Identity Token Sent Via: Same as "Token Sent Via"

    • Identity Path: /ocs/v2.php/cloud/user?format=json

    • Authorize Path: /apps/oauth2/authorize

    • Scope: openid

    • Param Name for access token: access_token

    • Id: 聽[paste from NextCloud OAuth client configuration]

    • Secret: [paste from NextCloud OAuth client configuration]

    • Login Style: [make your choice]

    • Button Text: [your choice]

    • Button Text Color: [your choice]

    • Button Color: [your choice]

    • Username field: ocs.data.id

    • Email field: ocs.data.email

    • Name field: ocs.data.display-name

    • Avatar field: [leave empty]

    • Roles/Groups field name: ocs.data.groups

    • Merge Roles from SSO: uncheck

    • Merge users: check

    • Show Button on Login Page: check

Thanks a lot i use your solution @loxK !

I try to get the merge roles fonctionality work but it don't you have any idea how to do it ?

I can't find the ocs.data.groups

I don't use that feature. I tried and it made my account to loose the admin role in Rocket Chat. I didn't dig further.

I don't use that feature. I tried and it made my account to loose the admin role in Rocket Chat. I didn't dig further.

Same for me :+1:

Nice workaround @loxK! I'll use this to develop the right way and do this working, probably at the next week!
Thanks! 馃槂

Hello @djorkaeffalexandre, is there something new ?

Was this page helpful?
0 / 5 - 0 ratings