I want users to grant Drive access at ‘Login with Google’ so they aren’t asked again when using ‘Add Google File’īy default, when you install the Google Drive Embedder plugin, whenever users ‘Login with Google’ to the site they will no longer be asked to grant Drive and/or Calendar permissions (as of Google Drive Embedder version 4.1). See our tutorial here for ensuring users do not need their own Google account to view files and folders. (Enterprise version of Google Drive Embedder) I don’t want users to need their own Google account to view folders – they keep being asked to authorize Under ‘Advanced’, change to ‘Anyone with the link can view’ to be sure all users can see the file. The easiest way to ensure this is the case – and so even users who are logged out of Google can see the file – is to locate the file in Google Drive and click Share. The Google viewer needs to have permission to show the file to whichever Google user is logged into the browser. In all cases, please just get in touch if you prefer for our support team to take a look, ideally providing an account on your site registered to that will have permissions to ‘Add Google File’ in a new page/post. You need to update this or add further URLs to match every possible URL for accessing your site – including http and https versions of your site URL, and also with/without the www at the front if it is possible to access with and without (although we would recommend choosing a canonical URL and have all others redirect to that URL). Inside, there is an Authorized Javascript Origin setting. Under APIs & Auth (from the top-left three-bars menu), click the Credentials tab, then click into the OAuth 2.0 ID that you would have created. To fix this, you need to go back to the project you created in Google Developers Console when you first set up the plugin. If you can’t obtain a message, please proceed anyway. Most likely, the message will refer to an ‘invalid origin’. Are there any red lines that refer to ? If so, you may be able to click into the Preview section of the red line to obtain an error message returned from Google. With your browser’s Developer Tools already open, reload the page and click the Network tab. If in doubt, please contact support or try out the following possibility. You could try deactivating all other plugins and switching to a default theme to see if that helps track down the culprit. If the Console tab has any red error messages, this may indicate a Javascript problem on your site – possibly from another plugin/theme, but which prevents any further Javascript from running (including the Add Google File dialog). Otherwise, there may be a plugin configuration issue or a Javascript conflict. So the first step is to double-check for that second browser window and follow the instructions there. If the plugin configuration is correct, most likely your site has opened another browser window in which it needs you to login to your Google account or confirm you grant permissions for the site to access your Drive account. In the Add Google File dialog box, I just see “Loading…” Please see our invalid_scope instructions here. When you click ‘Add Google File’, or attempt to authorize with Google, you just see a window saying ‘400 – That’s an error. Please see further Unverified App details here. This is due to Google’s attempts to reduce malicious third-party applications. When you first configure Google Drive Embedder, users may face the following screen when they attempt to ‘Add Google File’: One reason a lot have people have seen ‘forbidden’ in the past is because they have the following setting unchecked: go to Google Apps -> Drive, and then General Settings -> Allow users to install Google Drive apps.Īfter changing settings, you should logout of WordPress and Google, then refresh and try all over again. You could have disabled API access completely, so take a look in your Google Apps admin panel and look for anything obvious. Google Apps’ user and permissions systems are complex, and there are many ways you could unintentionally forbid your users from using the Drive API. In the Add Google File dialog box, I just get the Google Error “Forbidden”įirst, are you sure you followed all configuration instructions of the Google Apps Login plugin, including enabling Drive API…?
0 Comments
Leave a Reply. |