can't connect to OneDrive Business!?
fmueller25 opened this issue · comments
i can't connect to OneDrive for Business. Any chance to set this up correctly?
Thanx
Please post the Debuglog and more Information...
the provided oauth2 link in the adapter is only for the live.com private Microsoft account not for MS business 365. So no debuglog without the correct link ;)
Is there a comparable authlink for business? no one is familiar with it.
Can you please test whether authorization is possible with this address?
Copy the URL generated by Backitup and replace the first part with the URL from your post
https://login.microsoftonline.com/common/oauth2/v2.0/authorize[?&scope=offline_access.....
According to your picture, you did not copy the complete code from the address bar.
You have to copy everything after code=
this is the complete code after code=:
0.AQsAeslnqT4CSU26I7Cis7wy2X3w950e_fVGoEViOoE7SqiEAA4.AgABAAIAAADnfolhJpSnRYB1SVj-Hgd8AgDs_wUA9P-mpZfU_lOcdOsUJlpkihkfUHHJY8-uAutTx45gGn_YhEFSeWVS3CSkq8zQr6gMwBEsRjs_MoHswfxcibMP9CquUTYpdIk48zTuWi6PRS8Q2S6XaNHLXEvoWGZyuTq3knu8xYqQO5Tu3qBNB_z-M4m45fCAic3V-ExilLyHsca7_JKC5V7yt3-f41hXsCneLaosHM-IX550ghOLebP8qnpniL0M17b_y9UL4dBbALmmM5BRdM_eIWpf9MH5EOaUPYCZUr29-NsXvP3LdNoKbdRE0bjEfkDw6gDMaciJ33mVJsx5DusuYa5Mr-22FFEbL4CXEv86vifjjX18nACjEG4HI7eywaulsHopktubm66BZhvXuEUmy-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-CSknqYrJVN_JfWlL6PPlF26HAhLG0VXrlu_0RxYpw_Ut6BrDDpqms3-r15DUSAr2qSkSC0UKgVYLWtB7XP3bBGoNIpvwtnAHOiB0_AzlcdqDN5C4EXcZ3tqDo50aNci_aq_bhFsWujClFKngiUvVNy21OJ9ro-w58Hgia2XzM38bnxfQXuVzschzw_RC6BQMQK9y0Q-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-GDZQahgR-Udqly72HfkWxRpRFAIKTGI_5hHbRpB8KB2Mej11GmRrFfJy-SiwFf4nihJ-_vEj4nPnSzlifxz-BRw&session_state=23c0c67e-1408-45a6-a3f2-bd90022fe2f7
but has a &session_state=23c0c67e-1408-XXXX-XXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXX url-variable at the end.
I'll test without the variable
the same, error no answer
maybe you can search for the right transmission here at the onedrive linux client. it is working fine with the business onedrive:
https://github.com/abraunegg/onedrive/tree/master
This Code is to much ....
The Output address is this
https://login.microsoftonline.com/common/oauth2/nativeclient?code=M.XXXX_BL2.2.U.XXXXXXXX-8db6-XXXX-6657-XXXXXXXXXXXX
maybe you can search for the right transmission here at the onedrive linux client. it is working fine with the business onedrive: https://github.com/abraunegg/onedrive/tree/master
This is the same:
https://github.com/abraunegg/onedrive/blob/1a88d33be3e2c6747c5621ab9d97df9cd3ee727a/src/onedrive.d#L28
https://github.com/abraunegg/onedrive/blob/1a88d33be3e2c6747c5621ab9d97df9cd3ee727a/src/onedrive.d#L63
Please try the address:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?scope=offline_access%20files.readwrite.all&response_type=code&prompt=login&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient&client_id=9df7f07d-fd1e-46f5-a045-623a813b4aa8
Did you copy the code without "&session_state=23c0c67e-1408-45a6-a3f2-xxxxxxxxxxxx"?
Please don't post your codes and token.... so wildly here for your own security
Does your iobroker have internet and can resolve DNS?
push