Please delay requesting an API token until one is needed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- api, authentication
調査の方向性
まず Auth0::Client.new から同期的なトークンリクエストまでを追跡し、クライアントのインスタンス化に関連する既存のテストと WebMock の設定を確認します。クライアントを構築してもネットワークリクエストが発生せず、トークンを必要とする操作では引き続きトークンがリクエストされ、テストでカバーされれば変更は完了です。
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Whenever a new Auth0::Client is instantiated a synchronous call is made to auth0 to fetch a token. This causes headaches in specs because any time that we instantiate it we have to mock it out with webmock to prevent actual requests. If it were only fetched when required we could focus our mocks to just the areas of code that require it rather than anything that happens to trigger an object instantiation.
Describe the ideal solution
When I do Auth0::Client.new there are zero network requests made.
Alternatives and current workarounds
We are considering putting a global mock in for this which we are not happy with.
Additional context
No response
- 主要言語
- Ruby
- スター
- 205
- フォーク
- 147
- 平均マージ
- 16時間 2分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
auth0/ruby-auth0 のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
auth0/ruby-auth0#610 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Rate limit data returned from API methods対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンfeature request
難易度 5/5 1週間以上 初心者へのやさしさ 32/100
auth0/ruby-auth0#606 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
MFA API Bearer token issue対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
auth0/ruby-auth0#556 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
auth0/ruby-auth0#500 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Move from `rest-client` to `faraday`?対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンfeature request
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
auth0/ruby-auth0#483 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
auth0/ruby-auth0 の issue をすべて見る
似ている issue
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memory対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
area/web interface
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
mastodon/mastodon#41000 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
zerocracy/judges-action#2743 ·
メンテナーはふだん 8 日以内に返信
-
Python 3.15 support対応中かも @amnesiaof が今日担当しました。 オープンL: python L: python:uv
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dependabot/dependabot-core#16524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
content good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
rubyevents/rubyevents#2182 ·
メンテナーはふだん 1 日以内に返信