A Completed Functional Flutter App (BLoC + Json API + Unit Test + Azure Active Directory OAuth + Access Dynamic CRM Entitis)

Bloc

Library

Bloc pattern

Overview

Bloc Architecture

*You have to change this configuration:

class AadOAuthConfig {
  AadOAuthConfig._();

  // base url
  static const String tenant = 'YOUR_TENANT_ID';
  static const String clientId = 'YOUR_CLIENT_ID';
  static const String scope = 'Add your Dynamics CRM Api';
  static const String redirectUri =
      'your redirect url available in azure portal';
}

Azure Active Directory OAuth

A Flutter OAuth package for performing user authentication against Azure Active Directory OAuth2 v2.0 endpoint.

HOW TO SETUP AZURE ACTIVE DIRECTORY APP?

  • Open https://portal.azure.com/ in your browser
  • Log in with your Azure account.
  • From the drawer menu, navigate to “Azure Active Directory.”
  • In “Azure Active Directory,” browse to “App registrations.”
  • Click on new registration and register a new app.
  • From your newly registered app copy, client ID, and tenant ID, use it in the flutter app.

License

Released under the MIT license

Author

Ali Tazik (tazik561) (@tazik561)

GitHub

View Github