Please delay requesting an API token until one is needed
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- ruby
- Bereich
- api, authentication
Rechercherichtung
Beginne damit, Auth0::Client.new bis zur synchronen Token-Anfrage nachzuverfolgen und die bestehenden Tests und das WebMock-Setup rund um die Instanziierung des Clients zu untersuchen. Die Änderung ist abgeschlossen, wenn das Erstellen eines Clients keine Netzwerkanfrage ausführt, während Vorgänge, die ein Token benötigen, weiterhin eines anfordern und durch Tests abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Ruby
- Sterne
- 205
- Forks
- 146
- Ø Merge
- 1 T. 22 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus auth0/ruby-auth0
-
Retrying a multipart request raises "Cannot write to closed encoder"Evtl. vergeben @RaphaelFakhri hat das vor 5 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
auth0/ruby-auth0#818 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 50/100
auth0/ruby-auth0#610 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Rate limit data returned from API methodsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenfeature request
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 32/100
auth0/ruby-auth0#606 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
MFA API Bearer token issueEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
auth0/ruby-auth0#556 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature request
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
auth0/ruby-auth0#500 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in auth0/ruby-auth0
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
metanorma/metanorma-standoc#1315 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
metanorma/metanorma-iso#1681 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Missing zh-CN translation: components/common/CommunitySolution.tsx:communitySolution.authorsSolutionOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
openstreetmap/openstreetmap-website#7554 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
manyfold3d/manyfold#7445 ·
Maintainer antworten meist innerhalb von 1 Tag