Skip to content

Support for response mode is missing #917

Open
@paulschreiber

Description

@paulschreiber

Issue

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

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:

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 #580
Has anyone used this lib for Apple Sign In (on Android)? #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA new featureissue-acceptedThis issue has been confirmed and accepted by the maintainerson holdAwaiting upstream changes in React Native (but not blocked)third-partyBlocked by a dependency outside of our control

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions