# Not able to connect OneDrive source

**URL:** <https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [June 17, 2021, 12:11am UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205 "2021-06-17T00:11:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [June 17, 2021, 12:11am UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/1 "2021-06-17T00:11:51Z")

</div>

After i created the application in my azure portal, take the credentials and everything i need as suggested by this documentation: [Connecting OneDrive | Workplace Search Guide [7.13] | Elastic](https://www.elastic.co/guide/en/workplace-search/7.13/workplace-search-onedrive-connector.html)

Im founding myself without been aple to complete the connection process. When i set up the configuration from , (Previusly assigned the application and client id to the conector)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/4/44e17a1c697b871fd6a72fac654dd23ffb4e7aa8.png)  
After that i need to login in my microsoft account. After doing that i just get redirected to the main page with any change whatsoever

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/2/028a79cdf648b08513cb7f60ecc9cbc14b25c0a4.png)

This is my redirect URL configuration in my azure app. Im using the URL as suggested by the documentation. Any idea on why im not able to connect and i just get redirected without any error message?

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [June 17, 2021, 8:56pm UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/2 "2021-06-17T20:56:34Z")

</div>

Hi @Francisco_Gomez1 -

Just to be sure - in the last screenshot, when you click the "Connect" link beside OneDrive at the top of the page, it still goes through the same workflow you described?

Also, would it be possible for you to post your redirect URLs as configured in your OneDrive Authentication? They should look like:

```auto
http://localhost:3002/ws/org/sources/one_drive/create
http://localhost:3002/ws/sources/one_drive/create

```

(and feel free to obfuscate the domain name if necessary).

Other than that, I am not sure what might cause it to bounce back to where you are seeing. Are there any errors in your log files that might indicate a redirect or authentication error?

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [June 18, 2021, 3:52pm UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/3 "2021-06-18T15:52:51Z")

</div>

Yes, it still goes throught the same workflow, so im unable to advance in the integration process, i cant see any error that may cause a bounce back, where i can consult the log files? thanks in advance.

These are my redirects url:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2ce0162923140eaab21f9f5c10837036cfb90823.png)

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [June 18, 2021, 4:46pm UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/4 "2021-06-18T16:46:32Z")

</div>

Ah - it looks like you may need the `:3002` port number in your redirect URLs (as Enterprise Search runs on port 3002) - unless you are rerouting this through a proxy or something like NGINX.

As for the log files, they typically are found in your /var/log/enterprise\_search directory (may be different depending on your installation), and any errors should be found in the `app-server.log` file.

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [June 19, 2021, 12:18am UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/5 "2021-06-19T00:18:23Z")

</div>

Something like this?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f913cf7c411f69a41f8993bdb7b645509bce9203.png)

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [June 20, 2021, 8:17am UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/6 "2021-06-20T08:17:00Z")

</div>

It dint work, any other idea?

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [June 22, 2021, 2:51pm UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/7 "2021-06-22T14:51:03Z")

</div>

@Francisco_Gomez1 - I'm not sure what may be causing the issue at this point.

The next step would be to look in your `app-server.log` log file(s) and see if there are errors there that might point out what is happening.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 31, 2022, 2:48am UTC](https://discuss.elastic.co/t/not-able-to-connect-onedrive-source/276205/8 "2022-10-31T02:48:04Z")

</div>

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