FormidableLabs / FormidableLabs/react-native-app-auth
Expose discovered config
- Vorherrschende Sprache
- Java
- Sterne
- 2.3k
- Forks
- 473
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I would like to access the `userinfo_endpoint` provided by the discovery endpoint and already required during the `authorize` , and later on use it to get this user info.
As of today I need to make the same call to the discover to grab the `userinfo_endpoint` and use it to fetch the profile information of the user.
I would avoid a rountrip for the already required config if it is possible to just access it.
See: https://github.com/FormidableLabs/react-native-app-auth/blob/bacd0377b46c0f0196a8b5cf86553484feacb023/ios/RNAppAuth.m#L112
Beitragsleitfaden
Rechercherichtung
Beginne bei ios/RNAppAuth.m in der Nähe der verlinkten Zeile und verfolge, wie die Discovery-Konfiguration während der Autorisierung abgerufen wird. Ermittle, wie der entdeckte userinfo_endpoint für spätere Profilanfragen verfügbar gemacht werden könnte, ohne die Discovery zu wiederholen. Als erledigt gilt die Aufgabe, wenn Aufrufer nach der Autorisierung auf diesen Endpoint zugreifen und den doppelten Discovery-Aufruf vermeiden können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- objective-c, react-native
- Bereich
- authentication, mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100