How to connect to OneDrive using plugin?

rafael_rosado97
Level 4
How to connect to OneDrive using plugin?

Hi, everyone.

I'm trying to connect Dataiku (local) to OneDrive using the plugin (as described in documentation), but my instance is on localhost. The problem is my url is not like http://localhost but as http://127.0.0.1/. So when I try to connect to OneDrive, it says the following error: invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

Any idea to solve this?

 

Thank you very much!!!!


Operating system used: Linux

0 Kudos
3 Replies
AlexT
Dataiker

Hi @rafael_rosado97 ,

The redirect URI should be  http://localhost:11000/dip/api/oauth2-callback
Or if you install DSS on a different port replace 11000 in the above, it would not required https if the redirect and installation is local e.g localhost. 

Let us know if that still doesn't work for you. Note that you can only use localhost with http any other host would need https and you need to install SSL or Proxy in front of DSS. 

Thanks

0 Kudos
rafael_rosado97
Level 4
Author

Thank you very much, @AlexT !!!!. I wrote the URL just like you said, but the error persists due to my URL is not like localhost, but as http://127.0.0.1:10000/. I wrote my URL in Azure portal  like http://localhost:10000/dip/api/oauth2-callback .  I don't kno if the problem is 127.0.0.1.

 

 

 
 

Captura.PNG

0 Kudos
AlexT
Dataiker

I believe you must use a valid https or http://localhost 127.0.0.1 does not work make sure you local hosts file includes localhost

https://learn.microsoft.com/en-us/azure/active-directory/develop/reply-url#prefer-127001-over-localh...

 

Thanks

0 Kudos