Hello,
Setting up Nextcloud as OAuth2 provider in Zammad, be able to login
Actually
“422: Minimum one identifier (login, firstname, lastname, phone or email) for user is required.”
see:
Infos:
Used Zammad version: 3.2.x
Used Zammad installation source: package
Operating system: Ubuntu Server 18
Browser + version: Firefox / Safari latest
Expected behavior:
Setting up Nextcloud as OAuth2 provider in Zammad
be able to login
Actual behavior:
When trying to log in with OAuth2, I’m getting “422: Minimum one identifier (login, firstname, lastname, phone or email) for user is required.”
Steps to reproduce the behavior:
Setup OAuth2 with nextcloud and zammad
Nextcloud oauth2 and NodeBB:
Nextcloud oauth2 and Rocket.Chat
opened 07:45AM - 18 Aug 17 UTC
closed 11:11AM - 18 Sep 18 UTC
Feature: Request
feat: integration / plugin
App: Idea
In our company we use extensively NextCloud as our cloud service and Rocket.Chat… to communicate with each other. Sometimes there is need to share some file on chat and what we do is copy link to cloud and paste in chat, but it isn't pretty solution, as Rocket doesn't know what is behind login-wall.
Ways of integration:
1. Create NextCloud app, so that Rocket is available directly from NextCloud – will be relatively easy, as it can be just iframe as it's done ex. in Collabora app.
2. Auto login. We currently use LDAP for auth, so there is no problem for us in terms of authentication source (it could be done just like in RainLoop webmail app, which has option to automatically login with NextCloud credentials), but I believe that some installations don't involve LDAP, so it would be nice to have support for NextCloud's auth source. Good thing is that NextCloud has some nice APIs, so it will be just matter of GET request and parsing XML, as described here: https://docs.nextcloud.com/server/12/developer_manual/client_apis/OCS/index.html
3. WebDAV file sharing integration, to allow for easy file sharing on chat. It could be great integration on its own, not necessarily directly connected to NextCloud, but to WebDAV in general. The way I see it is that Rocket fetches file info with PROPFIND request and generates or fetches thumbnail from WebDAV server. The thumbnail part may be a little bit tricky, but I think that there will be no problem with NextCloud in this matter, as thumbnails can be generated by NextCloud itself and then available via some GET request (just created issue for this: nextcloud/server#6176).
4. NextCloud as Rocket's file storage. At this point we'll already have WebDAV auth support, so it would be just a matter of selecting some shared folder without permission to delete and change.
5. NextCloud as attachment source. It would be nice to be able to browse NextCloud and add files directly from there to Rocket conversation. Could be done by sending file unique URL to chat, the format is: `{NextCloud server}/index.php/f/{fileid}`, where `fileid` can be fetched from WebDAV with PROPFIND _oc:fileid_.
6. NextCloud notifications about Rocket messages. That's not crucial, but would be nice to have as an option. I'm not yet sure how it could be done, but it can definitely be done.
So please tell me what do you think about all of this. To be honest I'm not too much of Node programmer, so I cannot help on the Rocket side, but I have some PHP background so I could write and maintain NextCloud app.
1 Like
Hi,
I have find this maybe can help for ientifier…:
userRoute: ‘https://NC_URL/ocs/v2.php/cloud/user?format=json’, // This is the address to your app’s “user profile” API endpoint (expects JSON)
Hello,
I am relaunching this topic. Has anyone succeeded setting up Nextcloud as OAuth2 provider in Zammad ?
system
Closed
March 26, 2021, 7:11am
4
This topic was automatically closed after 416 days. New replies are no longer allowed.