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

**URL:** <https://forum.pydio.com/t/cec-config-fails-with-the-redirect-uri-parameter-does-not-match-any-of-the-oauth-2-0-clients-pre-registerd-redirect-urls/3701>\
**Category:** Pydio Cells\
**Created:** [January 28, 2021, 2:41pm UTC](https://forum.pydio.com/t/cec-config-fails-with-the-redirect-uri-parameter-does-not-match-any-of-the-oauth-2-0-clients-pre-registerd-redirect-urls/3701 "2021-01-28T14:41:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zedsquared](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zedsquared](https://forum.pydio.com/u/Zedsquared)\
**Post date:** [January 28, 2021, 2:41pm UTC](https://forum.pydio.com/t/cec-config-fails-with-the-redirect-uri-parameter-does-not-match-any-of-the-oauth-2-0-clients-pre-registerd-redirect-urls/3701/1 "2021-01-28T14:41:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [January 29, 2021, 8:18am UTC](https://forum.pydio.com/t/cec-config-fails-with-the-redirect-uri-parameter-does-not-match-any-of-the-oauth-2-0-clients-pre-registerd-redirect-urls/3701/2 "2021-01-29T08:18:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [March 5, 2021, 8:18am UTC](https://forum.pydio.com/t/cec-config-fails-with-the-redirect-uri-parameter-does-not-match-any-of-the-oauth-2-0-clients-pre-registerd-redirect-urls/3701/3 "2021-03-05T08:18:27Z")

</div>

This topic was automatically closed 35 days after the last reply. New replies are no longer allowed.
