Skip to content

Commit aad4b23

Browse files
author
Eric Koleda
authored
Adding information about required scopes.
1 parent 736477b commit aad4b23

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ code editor:
2424
Alternatively, you can copy and paste the files in the [`/dist`](dist) directory
2525
directly into your script project.
2626

27+
If you are [setting explicit scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes)
28+
in your manifest file, ensure that the following scope is included:
29+
30+
* `https://www.googleapis.com/auth/script.external_request`
31+
2732
## Redirect URI
2833

2934
Before you can start authenticating against an OAuth2 provider, you usually need
@@ -260,3 +265,12 @@ registered with the OAuth provider is updated to use the format
260265
`https://script.google.com/macros/d/{SCRIPT ID}/usercallback`.
261266
* Version 22 - Renamed `Service.getToken_()` to `Service.getToken()`, since
262267
there OAuth providers that return important information in the token response.
268+
269+
## Troubleshooting
270+
271+
### You do not have permission to call fetch
272+
273+
You are [setting explicit scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes)
274+
in your manifest file but have forgotton to add the
275+
`https://www.googleapis.com/auth/script.external_request` scope used by this library
276+
(and eventually the `UrlFetchApp` request you are making to an API).

0 commit comments

Comments
 (0)