FormidableLabs / FormidableLabs/react-native-app-auth

Support for response mode is missing

Offen
#917 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement issue-accepted on hold third-party
Vorherrschende Sprache
Java
Sterne
2.3k
Forks
473
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Issue
Support for response mode is missing. If you try to add it as an additional parameter:

```js
import {authorize} from 'react-native-app-auth';

const appleConfig = {
issuer: 'https://appleid.apple.com',
clientId: APP_CONFIG.appleClientId,
redirectUrl: APP_CONFIG.appleRedirectURI,
scopes: ['name', 'email'],
additionalParameters: {
response_mode: "form_post",
}
};
let result = await authorize(appleConfig);
```

[You get this error](https://github.com/openid/AppAuth-Android/blob/c6137b7db306d9c097c0d5763f3fb944cd0122d2/library/java/net/openid/appauth/AdditionalParamsProcessor.java#L63):
>Parameter response_mode is directly supported via the authorization request builder, use the builder method instead

Please add a `responseMode` parameter to config. In RNAppAuthModule.java, use `setResponseMode()` to pass that on. A similar change is needed for iOS.

This may also require an upstream fix in `net.openid.appauth.AuthorizationRequest` to support `form_post`.

## Related issues
Implement "form_post" response mode https://github.com/FormidableLabs/react-native-app-auth/issues/580
Has anyone used this lib for Apple Sign In (on Android)? https://github.com/FormidableLabs/react-native-app-auth/issues/484

## Environment

* **Your Identity Provider**: `Apple`
* **Platform that you're experiencing the issue on**: `Android `
* **Your `react-native` Version**: `0.72.6`
* **Your `react-native-app-auth` Version**: `7..1.0`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit RNAppAuthModule.java und verfolge, wie die Autorisierungskonfiguration den Android-Anfrage-Builder erreicht, und untersuche anschließend die entsprechende iOS-Bridge-Behandlung. Prüfe net.openid.appauth.AuthorizationRequest auf Unterstützung für form_post. Die Aufgabe ist abgeschlossen, wenn responseMode in der Konfiguration akzeptiert und auf beiden Plattformen weitergeleitet wird und die Upstream-Abhängigkeit bei Bedarf aufgelöst ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, react-native
Bereich
authentication, mobile
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.