Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent samples from leaking OAuth client ID + Secret to users #379

Merged
merged 1 commit into from
Jul 27, 2022
Merged

fix: prevent samples from leaking OAuth client ID + Secret to users #379

merged 1 commit into from
Jul 27, 2022

Conversation

AlnisS
Copy link
Contributor

@AlnisS AlnisS commented Jul 5, 2022

Previously, the getService method was public in most of the samples, letting any user of any sample application execute the method using google.script.run to exfiltrate the OAuth Client ID and Secret from the server. Now, these methods are made private by appending an _ to their names, preventing this issue.

closes #378

Previously, the getService method was public in most of the samples, letting any user of any sample application execute the method using google.script.run to exfiltrate the OAuth Client ID and Secret from the server. Now, these methods are made private by appending an _ to their names, preventing this issue.
@AlnisS
Copy link
Contributor Author

AlnisS commented Jul 5, 2022

Issue: #378

@jpoehnelt jpoehnelt merged commit a5480c1 into googleworkspace:master Jul 27, 2022
sqrrrl pushed a commit that referenced this pull request Aug 2, 2022
…379)

Previously, the getService method was public in most of the samples, letting any user of any sample application execute the method using google.script.run to exfiltrate the OAuth Client ID and Secret from the server. Now, these methods are made private by appending an _ to their names, preventing this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants