auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
57 stars 36 forks source link

CredentialsManager credentials method and Api renewCredentials method do no send parameters #434

Open ioanniskouts opened 2 months ago

ioanniskouts commented 2 months ago

Checklist

Description

We are using the credentialsManager credentials method auth0.credentialsManager.credentials(); to retrieve and refresh our tokens which has been working fine. The issue we are having is that now we need to pass some parameters which do not seem to reach the auth0 dashboard and our login flow .

However, during the login process we access those parameters through event.request.query which is working as expected:

auth0.webAuthentication(scheme: scheme).login(
            scopes: const {'openid', 'profile', 'offline_access'},
            redirectUrl: redirectUrl,
            useEphemeralSession: preferEphemeralSession,
            audience: audience,
            parameters: {
              ...parameters,
              'prompt': 'login',
            },
          );

But this is not the case for the credentialsManager credentials method where the login flow is triggered but the parameters are not present. It is worth mentioning that we have also tried the following method and still we cannot receive the parameters:

auth0.api.renewCredentials(
        refreshToken: storedRefreshToken,
        parameters: {
          ...parameters,
          'prompt': 'none',
        },
      );

Reproduction

  1. Refresh the tokens by calling auth0.credentialsManager.credentials or auth0.api.renewCredentials and pass some parameters
  2. Check the login flow in auth0 dashboard to verify that the parameters are being retrieved through event.request.query

Additional context

No response

auth0_flutter version

1.5.0

Flutter version

3.19.2

Platform

Android, iOS

Platform version(s)

No response

guy-plentific commented 2 months ago

We are seeing the same issue could we please get a response on this? CC @Widcket @poovamraj

marcogiusti commented 1 month ago

Can you please give us an update on this? We are paying customers if this could help on taking decisions.

MrTadeu commented 1 day ago

Same issue