# I cannot authenticate to the server, even though I have configured it on both sides. Why is that?

### **Event description**

You have created and set up the Odoo server in confluence and in Odoo, the server shows available:\
You try to authenticate, get redirected to a new page but instead of successfully authenticating, the below error is displayed:

![](/files/hufnDx6ClQbktFmh9VVE)

### **Error message**

```
{"orestapi_code": "OrestapiOauth2Authorization-0005", "orestapi_message": "Redirect URI not found or misconfigured"}
```

### **Cause of event**

The redirect URI is either not set or is configured incorrectly in the Odoo Server.

### **Resolution**

1. Check the URI settings of the Odoo server through **Settings → Users and companies → Applicactions.**
2. Select the respective server, then click **Edit**
3. Add the below line to the URI on the **URIs** tab by clicking **Add a line**:

**URI**

```
https://<server-address>/plugins/odoo-connector/callback.action
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meta-inf.hu/odoo-confluence-connector/user-guide/troubleshooting-guide/i-cannot-authenticate-to-the-server-even-though-i-have-configured-it-on-both-sides.-why-is-that.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
