Cec config fails with "The redirect_uri parameter does not match any of the OAuth 2.0 client's pre-registerd redirect urls"

Hi Folks, I’m trying to set up cec on a machine that is ssh access only so I can’t open a browser on it.

When running cec configure and pasting the supplied URL into a browser I get the following error:
“The redirect_uri parameter does not match any of the OAuth 2.0 client’s pre-registerd redirect urls”

I’m unsure whether it is safe to post the URL that cec supplies here…

Can you help? I’m running cells behind a nginx proxy.

Also it would be nice if I could have cut and pasted that error message, but the error popup does not seem to allow text selection (chrome browser).

many thanks,
Robin.

FYI OAuth2 client application must be authorised on the server sided to have the permission to use the API. By default, the cec client app is registered and it should be able to perform the authorisation flow directly.

So what are your version of the cec and the server ?

At this step of the configure process:

? Do you want to edit OAuth client data (defaults generally work)?:
▸ Use defaults
Edit OAuth client

Did you change anything ?

I’m unsure whether it is safe to post the URL that cec supplies here…

You can, if you are not afraid to expose your FQDN here, otherwise replace it and the state => but in your case you must have the same domain twice in the URI, for example:

https://files.example.com/oidc/oauth2/auth?client_id=cells-client&redirect_uri=https%3A%2F%2Ffiles.example.com%2Foauth2%2Foob&response_type=code&scope=openid+email+profile+pydio+offline&state=XXX

Also it would be nice if I could have cut and pasted that error message, but the error popup does not seem to allow text selection (chrome browser).

You can copy paste the error message from the developer console in chrome