Support

Akeeba Backup for Joomla!

#33839 Onedrive for business

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by brianteeman on Monday, 05 October 2020 09:17 CDT

brianteeman

Finally got around to setting up onedrive for business with akeeba backup.

 

The authentication step 1  popup opens and I can log in to onedrive and get to the page with the tokens for OneDrive / OneDrive for Business Authentication.

Clicking on the "Complete" button results in a joomla admin login screen in the popup window. Completing the login just results in the popup window closing.

Tried to manually paste the tokens from the popup into akeeba. As soon as I try to save that configuration I get a 403

I have been able to successfully setup dropbox authentication on the same site

 

 

 

nicholas
Akeeba Staff
Manager

When you click the step 1 button you are opening a popup window to a page on our site. You send us a callback URL. The callback URL is a Joomla administrator URL for a special link in Akeeba Backup. More on that later.

The page on our site simply issues a redirection to Microsoft's authentication server. This step is required because the redirection uses the secret key we are not allowed to distribute in Akeeba Backup.

After you complete the authentication Microsoft redirects you back to a page on our site which displays the token. The button there is a simple form which posts the access and refresh token to the callback URL. The callback URL simply runs a small piece of JavaScript which finds the opener window, finds the correct fields in the Configuration page and changes their value.

Considering that pasting the tokens manually returned a 403 it tells me that there is something hosting-related which doesn't like the format of the OneDrive tokens (they are base64-encoded). This seems to be also killing your Joomla session which explains both problems.

You are the second person to report this the last week. I have tested this with every server I have in my disposal. It works fine. Therefore it's most definitely a server configuration issue. If I were to make an educated guess I'd say it's a mod_security2 rule getting in your way. Your host should be able to look at the error log and determine which rule to disable – or give you the .htaccess code to do that.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

brianteeman

I can confirm that it was a siteground hosting problem as I have now tested it on what will be the new host (scalahosting) and it works fine.

 

Sorry, if it had been anything other than onedrive which was always tricky I would probably have found that myself

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!