FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. mak
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    mak

    @mak

    0
    Reputation
    3
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mak Unfollow Follow

    Latest posts made by mak

    • fusionauth with flutter

      We are trying to integrate fusionAuth with flutter and I have already refereed to the posts

      https://pub.dev/packages/flutter_appauth/example
      //https://fusionauth.io/community/forum/topic/428/social-login-with-flutter-app/6

      I have tried the code and it works good with Auth0 but I am not able to get it working with fusionAuth

      here is the link to Auth0 code
      https://github.com/auth0-blog/flutter-authentication/blob/main/lib/main.dart

      I replaced the code with FusionAuth credentials, it opens the webclient but after authentication callback I get the below error..

      Below is the code

      const String FUSIONAUTH_DOMAIN= 'fusionauth.mydomain.com';
      const String FUSIONAUTH_CLIENTID = 'xxxxxxx-83a4-4523-823e-2b4390df1ef8';
      const String FUSIONAUTH_REDIRECT_URI = 'com.test.flutter://login-callback';
      const String FUSIONAUTH_ISSUER = 'https://$FUSIONAUTH_DOMAIN';
      const String FUSIONAUTH_DISCOVERY_URL = 'https://fusionauth.mydomain.com/.well-known/openid-configuration/xxxxxxx-9068-48fb-9af4-7b279d66395c';

      final List<String> _scopes = <String>[
      'openid',
      'profile',
      'email',
      'offline_access',
      'api'
      ];

      Future<void> loginAction() async {
      setState(() {
      isBusy = true;
      errorMessage = '';
      });
      try {
      AuthorizationTokenResponse result;
      await appAuth.authorizeAndExchangeCode(
      AuthorizationTokenRequest(
      FUSIONAUTH_CLIENTID,
      FUSIONAUTH_REDIRECT_URI,
      issuer: FUSIONAUTH_ISSUER,
      //discoveryUrl: FUSIONAUTH_DISCOVERY_URL,
      scopes: _scopes,
      ),
      );

      .. rest of the code is same from Auth0 example..

      It throws me an error saying
      [ error:invalid_client_descripition, C
      Client authentication missing as Basic Authorization header or credentials in the body (or some combination of them).], null, null

      if somebody can point what am I doing wrong

      posted in Q&A
      M
      mak
    • RE: Social login with Flutter App

      @dan Thank you so much,

      I am trying to implement it and using the below function, but it redirects to the fusionAuth UI but when on the callback I see the below error

       result =
              await appAuth.authorizeAndExchangeCode(
                AuthorizationTokenRequest(
                  FUSIONAUTH_CLIENTID,
                  FUSIONAUTH_REDIRECT_URI,
      //            issuer: FUSIONAUTH_ISSUER,
                  discoveryUrl: FUSIONAUTH_DISCOVERY_URL,
                  scopes: <String>['openid', 'profile', 'offline_access'],
                  // promptValues: ['login']
                ),
              );```
      
      I am getting thee error below
      ===================
      PlatformException(authorize_and_exchange_code_failed, Failed to authorize:[error: invalid_client, description: Client
      authentication missing aaas Basic Authorization header or credentials in the body(or some combination of them.], null, null)
      posted in Q&A
      M
      mak
    • How can I enable social logins from tenant or application API

      Hi

      Ours is a SAAS ap We have Identitify providers Facebook and Google enabled, but everytime we create a new application, we need to turn on Google and Facebook manually.

      Would like to know how can we turn in on through Java API library or any other pointer

      thank you

      posted in General Discussion
      M
      mak
    • RE: Social login with Flutter App

      We are new to flutter development and not sure how to integrate fusion auth, I am going thru the pointers but does not seem straightforward, if there is a sample implementation that would be awesome

      posted in Q&A
      M
      mak
    • How can i get the userinfo after authentication redirect

      Hi

      Once the user has been authenticated, I am trying to find out, what will be the API and what parameters it will need, below is the redirect URL recieved

      https://m300.test.com/?code=HM1Mn2WTKZkafXr7c3Y_5RyOxoOJkBSvSbCLimHwPm0&locale=en_US&userState=Authenticated

      thank you

      posted in Q&A
      M
      mak