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
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,218 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 -
rafael_rosado97 Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 61 Partner
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. -
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,218 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-localhostThanks