fullauth_api_flutter_client 1.0.3

  • Readme
  • Changelog
  • Installing
  • 36

fullauth_api_flutter_client #

A new Flutter package project.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

// flutter packages pub run build_runner build - to start the build runner // flutter packages pub run build_runner build --delete-conflicting-outputs // flutter packages pub publish

[1.0.3] #

  • Fixes issue on fetching accesstoken for apple token

[1.0.2] #

  • Added option to get accesstoken for Apple token

[1.0.1] - Has Some Major issue fixes. #

  • Fixed getting accesstoken for offline accesstype
  • Changes in revoking the accesstoken path

[1.0.0] - Initial Version of fullauth api client #

  • Includes getting accesstoken for resource owner credentials, google token
  • Token info api
  • Refresh token api
  • Revoke token api

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fullauth_api_flutter_client: ^1.0.3

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fullauth_api_flutter_client/enums/auth_environment.dart';
import 'package:fullauth_api_flutter_client/enums/oauth_access_type.dart';
import 'package:fullauth_api_flutter_client/enums/oauth_expiry_type.dart';
import 'package:fullauth_api_flutter_client/enums/oauth_grant_type.dart';
import 'package:fullauth_api_flutter_client/enums/oauth_token_type.dart';
import 'package:fullauth_api_flutter_client/exception/token_response_exception.dart';
import 'package:fullauth_api_flutter_client/fullauth_api_flutter_client_library.dart';
import 'package:fullauth_api_flutter_client/helpers/api_helpers.dart';
import 'package:fullauth_api_flutter_client/helpers/fullauth_extensions.dart';
import 'package:fullauth_api_flutter_client/helpers/fullauth_helpers.dart';
import 'package:fullauth_api_flutter_client/oauth_service/fullauth_oauth_service.dart';
import 'package:fullauth_api_flutter_client/oauth_service/fullauth_oauth_service_builder.dart';
import 'package:fullauth_api_flutter_client/request/apple_token_request.dart';
import 'package:fullauth_api_flutter_client/request/google_token_request.dart';
import 'package:fullauth_api_flutter_client/request/oauth_token_request.dart';
import 'package:fullauth_api_flutter_client/request/refresh_token_request.dart';
import 'package:fullauth_api_flutter_client/request/resource_owner_token_request.dart';
import 'package:fullauth_api_flutter_client/token/oauth_access_token.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
91
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
43
Overall:
Weighted score of the above. [more]
36
Learn more about scoring.

We analyzed this package on Jul 10, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [fullauth_api_flutter_client] that is in a package requiring null.

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:fullauth_api_flutter_client/fullauth_api_flutter_client_library.dartdart:io

Health suggestions

Fix lib/helpers/api_helpers.dart. (-1.99 points)

Analysis of lib/helpers/api_helpers.dart reported 4 hints:

line 4 col 17: Name non-constant identifiers using lowerCamelCase.

line 5 col 17: Name non-constant identifiers using lowerCamelCase.

line 6 col 17: Name non-constant identifiers using lowerCamelCase.

line 7 col 17: Name non-constant identifiers using lowerCamelCase.

Fix lib/oauth_service/fullauth_oauth_service_builder.dart. (-1.99 points)

Analysis of lib/oauth_service/fullauth_oauth_service_builder.dart reported 4 hints:

line 6 col 10: Don't explicitly initialize variables to null.

line 7 col 10: Don't explicitly initialize variables to null.

line 9 col 10: Don't explicitly initialize variables to null.

line 10 col 19: Don't explicitly initialize variables to null.

Fix lib/oauth_service/fullauth_oauth_service.dart. (-1.49 points)

Analysis of lib/oauth_service/fullauth_oauth_service.dart reported 3 hints:

line 32 col 15: The value of the field '_scopes' isn't used.

line 33 col 10: The value of the field '_redirectUri' isn't used.

line 34 col 19: The value of the field '_accessType' isn't used.

Fix additional 13 files with analysis or formatting issues. (-3.50 points)

Additional issues in the following files:

  • lib/enums/auth_environment.dart (2 hints)
  • lib/enums/oauth_access_type.dart (2 hints)
  • lib/enums/oauth_expiry_type.dart (1 hint)
  • lib/enums/oauth_grant_type.dart (1 hint)
  • lib/enums/oauth_token_type.dart (1 hint)
  • lib/exception/token_response_exception.dart (Run flutter format to format lib/exception/token_response_exception.dart.)
  • lib/helpers/fullauth_helpers.dart (Run flutter format to format lib/helpers/fullauth_helpers.dart.)
  • lib/request/apple_token_request.dart (Run flutter format to format lib/request/apple_token_request.dart.)
  • lib/request/google_token_request.dart (Run flutter format to format lib/request/google_token_request.dart.)
  • lib/request/oauth_token_request.dart (Run flutter format to format lib/request/oauth_token_request.dart.)
  • lib/request/refresh_token_request.dart (Run flutter format to format lib/request/refresh_token_request.dart.)
  • lib/request/resource_owner_token_request.dart (Run flutter format to format lib/request/resource_owner_token_request.dart.)
  • lib/token/oauth_access_token.dart (Run flutter format to format lib/token/oauth_access_token.dart.)

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/karthikAdaptavant/fullauth_api_flutter_client.git was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (optional).

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and fullauth_api_flutter_client.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
flutter 0.0.0
http ^0.12.0+4 0.12.1
optional ^3.1.0 3.1.0 5.0.0
Transitive dependencies
charcode 1.1.3
collection 1.14.12 1.14.13
http_parser 3.1.4
meta 1.1.8 1.2.2
path 1.7.0
pedantic 1.9.0 1.9.2
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
build_runner ^1.0.0
flutter_test