fab-manager icon indicating copy to clipboard operation
fab-manager copied to clipboard

Nextcloud Oauth2.0 groups are not recognized by Fab-Manager

Open microbearlogist opened this issue 1 year ago • 2 comments

Our Fab-Manager instance uses Nextcloud's Oauth2.0 SSO.

When mapping Fab-manager's user/group_id value to Nextcloud's group field (ocs.data.groups), the response is as follows:

<ocs>
  <data>
    <groups>
     <element>admin</element>
     <element>group 1</element>
     <element>group 2</element>
      </groups>
  </data>
<ocs>

This results in the following value for Fab-Manager: [« admin », « group 1 », « group 2 »]

As a result, the group selection field is grayed out (unselectable) and it is therefore impossible to validate the new user from the Oauth2.0 Nextcloud SSO.

microbearlogist avatar Jun 11 '24 15:06 microbearlogist

Hi @microbearlogist

Fabmanager cannot match the group name; you need to retrieve the group ID from your SSO.

gnepud avatar Jun 12 '24 15:06 gnepud

Thank you for this clarification @gnepud

Then unfortunately the actual Oauth2 implementation of Nextcloud do not provide anything else than group name. Maybe in a future update.

microbearlogist avatar Jun 14 '24 14:06 microbearlogist