Hello,
when I try to log in to my nextcloud with the plugin, the error “Unrecognised response when requesting Nextcloud user data” always appears.
The logfile:
[2022-07-10 17:36:32] Error: Unrecognised response when requesting Nextcloud user data
[2022-07-10 17:36:33] State Set as Session: 2b262e879ae9d625a400
[2022-07-10 17:36:33] Authorize URL: https://localhost/login/index.php/apps/oauth2/authorize?response_type=code&client_id=PCsn92r9zQkOlWFJwQMPNLt6fdFvenM4iCWRXICXuFd7RpConS2hPdeDIz617336&redirect_uri=http%3A%2F%2Flocalhost%2Fsite&state=2b262e879ae9d625a400&scope=openid
[2022-07-10 17:36:35] Received State Back: 2b262e879ae9d625a400
[2022-07-10 17:36:35] URL: https://localhost/login/index.php/apps/oauth2/api/v1/token, Response: {"access_token":"ZbUT8D7yscrhc2CM4JG7YZwhgPeIlUDgG1ztHOHdxv4zGeiJFOYGIwbuaTCxlP9SykHyk9vR","token_type":"Bearer","expires_in":3600,"refresh_token":"HMopY66hux8XyH2jhIKNABOlR2CCoWtgkPj9tr2DIs0H1f51wF61rIjrDtDKnnzvsf0sRDiwmKPZo3BPF1hKbKeZiHFkcxBzGvKu5k4eku4ZJOq22jRreR7WZU3CZ6zF","user_id":"Admin"}
[2022-07-10 17:36:35] URL: https://localhost/login/ocs/v2.php/cloud/user?format=json, Response: {"ocs":{"meta":{"status":"failure","statuscode":997,"message":"Current user is not logged in"},"data":[]}}
[2022-07-10 17:36:35] Unrecognised response when requesting Nextcloud user data, response: {"ocs":{"meta":{"status":"failure","statuscode":997,"message":"Current user is not logged in"},"data":[]}}
[2022-07-10 17:36:35] Error: Unrecognised response when requesting Nextcloud user data
I hope that you can help me.
]]>I use the WP Download Manager plugin. If users are not logged in the Download button on the page that they are on turns into a log in button. So when users click on this and login using Nextcloud they get returned to the ‘On login redirect user to’ URL in the settings. I tried to leave this setting blank but logging in just sent me to my site’s main page.
Is there a way for the user to return to the page that they were on when they logged in? Maybe saved in the session or cookie?
]]>Every time that I log in to Nextcloud. The Connect to this account message is fine but the Security message with ‘not trying to set us a new device’ when just trying to log in is very off-putting to users. Is this a Nextcloud generated message? Is there a way to get around this or change the message?
Connect to your account
Please log in before granting apple-q.org.au access to your Apple-Q-Cloud account.
Security warning
If you are not trying to set up a new device or app, someone is trying to trick you into granting them access to your data. In this case do not proceed and instead contact your system administrator.
]]>Latest version of WordPress (5.9.2)
Latest Version of NextCloud (23.0.2)
Clean installs of both on DreamHost Server except install of Tim’s Nextcloud SSO OAuth2
SSL Let’s Encrypt Certs on both
Lasest version on FireFox (but also tried with Latest Safari)
macOS 12.01
Same Username,password, and email for both WordPress and NextCloud
Followed plugin setup instructions.
Logged off both WordPress and NextCloud Sites.
Clicked on Login with NextCloud button on the WordPress Default login page (wp-login.php).
Sent to NextCloud Site and logged in successfully.
Sent back to WordPress site and got the error:
WordPress returned an invalid state for this session
with URL:
https://site.myharvey.net/wp-login.php?nc-sso-error=returned-invalid
Log file only has 2 lines with no error.
Nextcloud 0Auth2 Client Setting:
Redirection URI https://site.myharvey.net
WordPress Settings (no Pritty Links):
Nextcloud URL https://<my cloud site>/index.php/
On login redirect user to: https://<my WordPress site>
Add login button to WordPress login page: Yes
Create account if not registered: Tried No and Yes
How to match users: Email Address
Default WordPress role for new users: Tried Administrator and Subscriber.
Tried on combinations of 3 WordPress and 3 NextCloud site on 2 different domains (the other hosted by me using Ubuntu with Hestia CP)
It did work once and still have that working but when I Export and Import the WordPress site to a different (and adjust settings) it does not work (I used All In One WP Migration Plugin as well as WPs own Export/Import.
Any ideas?
]]>Hello,
Thank you very much for this plugin !
I’ve been trying to setup the plugin, everything seems to go smoothly, and then when I try to connect using the button provided, I have an error “Unrecognised response when requesting Nextcloud user data”.
These are my settings : https://ibb.co/YZyVKR2
What did I do wrong ?
Thank you very much again
]]>