Skip to content

Commit

Permalink
Corrections in docs regarding API key restrictions; rolled version nu…
Browse files Browse the repository at this point in the history
…mber
  • Loading branch information
kenkuhhaut committed Jul 9, 2021
1 parent 372a506 commit 0b44bf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/user_manual/google_cloud_project.rst
Expand Up @@ -44,7 +44,7 @@ Obtain credentials
* Restrictions for the newly created API key do not have to be added for the package to work, but should still be implemented for security reasons.

* Under ``Application restrictions``, select ``HTTP referrers (websites)`` and add an appropriate URL under ``Website restrictions``. Note that this can be skipped during local development and testing.
* Under ``API restrictions``, select ``Restrict key`` and choose the Google Picker API from the dropdown menu. The Sheets API does not need the API key and thus does not need to be selected.
* Under ``API restrictions``, choose ``Restrict key`` and select both the Google Picker API and the Google Sheets API from the drop-down list.

* The implementation of a proper authentication and authorization workflow requires the creation of **OAuth credentials**. Obtaining those is a two-step process: First, we need to configure the OAuth consent screen. Second, we need to create an appropriate OAuth 2.0 client ID.

Expand Down
2 changes: 1 addition & 1 deletion gsheets_import/__init__.py
@@ -1 +1 @@
__version__ = '0.0.2'
__version__ = '0.0.3'
4 changes: 1 addition & 3 deletions gsheets_import/static/gsheets_import/js/import_gs.js
Expand Up @@ -164,9 +164,7 @@ function onClientLoad() {
button_import.disabled = false;
}
}).catch(function(error) {
// error handling
console.log("+++ This somehow failed");
console.log(error);
console.log("Something went wrong: " + error);
});
}

Expand Down

0 comments on commit 0b44bf5

Please sign in to comment.