Closed florisvangeel closed 2 years ago
Hi @idevit,
It looks like the App couldn't create the user, thus returned False instead of the user token (my bad, should do a check to avoid a log to produce an error, will be fixed today).
Do you by any chance see an error message in the Rocket chat logs ?
This could be caused because of an Environment Variable that has to be set in your Rocket.Chat service :
CREATE_TOKENS_FOR_USERS=true
In a standard Rocket Chat installation, this is to be added in /lib/systemd/system/rocketchat.service in the "Environment=" key (cfr screenshot on my local env)
If the problem persists, let me know :)
Thank you for the quick responds, i had an unrelated (email) error in rocket.chat logs:
TLSSocket.emit (domain.js:475:12) at emitReadable_ (internal/streams/readable.js:555:12) at processTicksAndRejections (internal/process/task_queues.js:81:21) {type: 'no', textCode: 'AUTHENTICATIONFAILED', source: 'authentication'}
Now it works for a user that existed in both systems.
creating a new testuser in nextcloud will generate the user object in rocket.chat.
AWESOME 💯
Notice that this process does not work in incognito window due to 3rd party cookies
Alright, thank you for the feedback !! Glad it works, we will be enhancing the flows, we're still in Beta :)
I'm closing this issue as it looks OK !
Have a nice day
Another footnote, we just tested this with a colleague and i forgot to manually validate her email address. After it worked in a new nextcloud session.
The email address in nextcloud is already validated so user experience can be more seemless Furthermore its using the known session cookie instead of logging in as the user.
Example i log in as admin and chat works then re-login as floris without cleaning cookies and im still chatting as admin.
Thank you for this ! I'll be clearing cookies :)
Hi @idevit
Just coming by to let you know V 0.9.6 is there, now every session is logged before login to avoid above problem :)
Regards,
Thank you, your doing awesome work here :kudos:
Installed the app and configured an admin service user.
when navigating the browser to /apps/rocketchat_nextcloud/ an internal server error is triggered.
this is shown in data/nextcloud.log: