server: check-config warns when rest.requiredScopes is set in token mode

オープン 初心者向け
#1,059 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

config.jsとrest/sign-in.jsの61行目付近を読み、トークンモードでスコープがどのように扱われるかを確認してから、check-configの検証とそのテストを探します。トークンモードでrest.requiredScopesまたはREST auth.requiredScopesが設定されている場合に警告を追加し、issueで挙げられた制限も含めます。その設定で警告が表示され、関連するチェックが通れば完了です。

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

説明

area:server enhancement

rest.requiredScopes only applies to OAuth bearer tokens (config.js: "OAuth: scopes every REST call needs"). In auth.mode: "token", the REST sign-in takes the token mode's path (rest/sign-in.js:61), and the option has no effect. That also holds for tokens of auth.externalIssuers.

check-config says nothing when the option is set in token mode. An operator who sets it there expects every REST call to need those scopes, but no call does. The profile and the issuer entry's scopes still limit what a caller gets.

Proposal: check-config warns when rest.requiredScopes (or auth.requiredScopes for REST) is set while auth.mode is token, and names what limits a caller in that mode (profiles, the issuer entry's scopes, sources[].scopes).

主要言語
JavaScript
スター
1
フォーク
1
平均マージ
3時間 57分
マージ済み PR(30日)
453

環境構築

はじめの一歩

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

eizedev/pivotkit のほかの issue

eizedev/pivotkit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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