Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

data-studio/auth.gs doesn't guarantee authorisation.

オープン
#184 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript

調査の方向性

data-studio/auth.gs の157行目付近から始め、hasAccess() を使用している isAuthValid() の例を確認します。その動作と記述を、リンク先の Google Workspace Addons Documentation と比較します。例で hasAccess() が認証を保証しないことを明確に示すか、API を呼び出してそのレスポンスコードを使用する例を含めれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

It's this method in question.

Expected Behavior

The code sample should either:

  1. State that the hasAccess() method does not guarantee authorisation as it states in the documentation.
  2. Include an additional code example that probes the API, and returns the authorisation state from the response code.

Description:
This code sample suggests that calling the hasAccess() method guarantees authorisation. This isn't true.

/**
 * Returns true if the auth service has access.
 * @return {boolean} True if the auth service has access.
 */
function isAuthValid() {
  return getOAuthService().hasAccess();
}

Actual Behavior

The response code needs to be handled to fully confirm authorisation state, or the documentation should suggest that the hasAccess() method doesn't guarantee authorisation. Similar to the way the call is handled in the Google Workspace Addons Documentation

主要言語
JavaScript
スター
5.2k
フォーク
2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleworkspace/apps-script-samples のほかの issue

googleworkspace/apps-script-samples の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。