Get Started with Flutter Authentication

We are definitely looking into it. Thank you again for creating that Pull Request :pray:

2 Likes

Fantastic news, I was waiting for this for some times. Thanks.

1 Like

Is it possible to add a specific audience for this Flutter authentication?

1 Like

quick question, can we access the management api using the token received throughout the blog?

1 Like

you can set it in additionalParameters like this:

AuthorizationTokenRequest(
AUTH0_CLIENT_ID,
AUTH0_REDIRECT_URI,
issuer: AUTH0_ISSUER,
additionalParameters: {‘audience’: ‘<your_audience>’},
scopes: [‘openid’, ‘email’, ‘profile’, ‘offline_access’, ‘api’],
discoveryUrl: ‘$AUTH0_ISSUER/.well-known/openid-configuration’,
),

1 Like

Thank you arch18.
I have now resolved my issue using a different approach.

2 Likes

Perfect! Glad you have it working @regis_mazur!

Howdy, Ike. Let me double check on that and what restrictions you may have when calling the Management API from a client application. :+1:

:zap:Got the answer about Flutter + Auth0 Management API validated by one of our Engineering Managers, Martin Walsh :muscle:

As a public client, the access is limited. This page covers this although it frames it around SPA as an example of a Public Client. Any native app will also be a public client.
https://auth0.com/docs/api/management/v2/get-access-tokens-for-spas

1 Like