New install of Owncloud client should prompts requesting for owncloud URL. Owncloud URL is added, oauth2 workflow begins, launch browser window, prompt for authorization. Upon successful authorization, ownCloud client logs in and begins sync.
Web server error log:
Apache log only shows web server restarts
Server logfile: ownCloud log (data/owncloud.log):
ownCloud server log has not changed in over 1 month
It seems that in the oauth2 module, under Registered Clients, the client is not registered. I tried to re-register the client, using this as the redirection URI: http://localhost:*
It added a client, with a generated Client Identifier and Secret. But the client still won’t connect. How do I fix this?
This ownCloud server has been working for a while, and I have multiple machines connecting to it using the Desktop client just fine. I got a new Macbook Pro, fresh out of the box, installed ownCloud client, and starting having this problem.
It seems to only have Android and iOS, but its missing an entry for the desktop client. I manually made an entry through the OwnCloud web interface for the desktop client and it generated an identifier and secret, but it didn’t match what the client is passing in.
So I looked at the client and what it was passing in. I can see the identifier, but not the secret (makes sense). I manually updated the database with the correct identifier and tried the client again. This time it got further but gave me an error on the secret. SO… what I need to know is… how do I get the secret that the client is passing in, so I can update the database to match?
I’m looking at this process and I guess I don’t understand the steps. For “Register New Client”, thats not a CLI command. There is a portion in the UI that allows me to add a new client, which generates a new API Key and Secret. That’s pretty easy to do. But then how do I get my local desktop client to actually use that key? The client seems to be using a key it has decided on.
Or do I need to get the API key and secret from the client and manually add that? How do I get the API key and secret the client is trying to use so I can add it to the system? I can get the key from the authorization URL, but the secret appears to be hidden. Is it in a file stored on the client somewhere?
try to reinstall the Oauth2 app, from the market, I’m not sure why your desktop is missing, I just installed the Oauth2 app from the market and Desktop Client is there in the oc_oauth2_clients table.
Ok, so I tried it. I was able to reinstall the Oauth2 app. But upon reinstall, the Authorized Users page still only lists the android and ios client, but not the desktop (see screenshot).
I tried to re-authorize the desktop app, but still the same error.
This request is not valid. Please contact the administrator if this error persists.
How do I get that? I think I can get the client ID in the URL that is used during authentication. But how do I get the secret?
Oh by the way, I can’t specify the client ID and secret when adding the desktop client to the Oauth screen. It generates one. So either I have to manually update the database with value the client is using (which I need to figure out how to get), or I need to change the client to use the one that is generated in the Oauth settings page.