Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
ioanniskouts opened this issue Apr 12, 2024 · 4 comments

Comments

@ioanniskouts
Copy link

ioanniskouts commented Apr 12, 2024

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
Copy link

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

@marcogiusti
Copy link

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

@MrTadeu
Copy link

MrTadeu commented Jul 4, 2024

Same issue

@ioanniskouts
Copy link
Author

Any update on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants