oauth2_client 4.2.0 copy "oauth2_client: ^4.2.0" to clipboard
oauth2_client: ^4.2.0 copied to clipboard

Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure token storage, automatic token refreshing.

150/ 160
pub points
31.1k
downloads

We analyzed this package 13 hours ago, and awarded it 150 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-2-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

47 out of 161 API elements (29.2 %) have documentation comments.

Some symbols that are missing documentation: access_token_response, access_token_response.AccessTokenResponse.AccessTokenResponse.errorResponse, access_token_response.AccessTokenResponse.AccessTokenResponse.fromHttpResponse, access_token_response.AccessTokenResponse.AccessTokenResponse.fromMap, access_token_response.AccessTokenResponse.AccessTokenResponse.new.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:oauth2_client/oauth2_client.dart that imports:
  • package:oauth2_client/src/io_web_auth.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/linows.dart that imports:
  • package:flutter_web_auth_2/src/webview.dart that imports:
  • package:desktop_webview_window/desktop_webview_window.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `iOS`.

Because:

  • package:oauth2_client/oauth2_client.dart that imports:
  • package:oauth2_client/src/io_web_auth.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/linows.dart that imports:
  • package:flutter_web_auth_2/src/webview.dart that imports:
  • package:desktop_webview_window/desktop_webview_window.dart that declares support for platforms: Windows, Linux, macOS.

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: Missing type annotation.

lib/access_token_response.dart:84:23

   ╷
84 │   bool refreshNeeded({secondsToExpiration = 30}) {
   │                       ^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/access_token_response.dart

INFO: Missing type annotation.

lib/oauth2_helper.dart:178:38

    ╷
178 │   Future<OAuth2Response> disconnect({httpClient}) async {
    │                                      ^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/oauth2_helper.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
crypto ^3.0.3 3.0.6 3.0.6
flutter_secure_storage ^10.0.0-beta.4 10.0.0-beta.4 10.0.0-beta.4
flutter_web_auth_2 ^5.0.0-alpha.0 5.0.0-alpha.5 5.0.0-alpha.5
http ^1.1.0 1.5.0 1.5.0
meta ^1.12.0 1.16.0 1.17.0
random_string ^2.3.1 2.3.1 2.3.1
web ^1.1.0 1.1.1 1.1.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
desktop_webview_window - 0.2.3 0.2.3
ffi - 2.1.4 2.1.4
flutter_secure_storage_darwin - 0.1.0 0.1.0
flutter_secure_storage_linux - 2.0.1 2.0.1
flutter_secure_storage_platform_interface - 2.0.1 2.0.1
flutter_secure_storage_web - 2.0.0 2.0.0
flutter_secure_storage_windows - 4.0.0 4.0.0
flutter_web_auth_2_platform_interface - 5.0.0-alpha.4 5.0.0-alpha.4
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.11.1 0.13.0
path - 1.9.1 1.9.1
path_provider - 2.1.5 2.1.5
path_provider_android - 2.2.18 2.2.18
path_provider_foundation - 2.4.2 2.4.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
url_launcher - 6.3.2 6.3.2
url_launcher_android - 6.3.22 6.3.22
url_launcher_ios - 6.3.4 6.3.4
url_launcher_linux - 3.2.1 3.2.1
url_launcher_macos - 3.2.3 3.2.3
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.4.1 2.4.1
url_launcher_windows - 3.1.4 3.1.4
vector_math - 2.2.0 2.2.0
win32 - 5.14.0 5.14.0
window_to_front - 0.0.3 0.0.3
xdg_directories - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
197
likes
150
points
31.1k
downloads

Publisher

verified publisherfemtopedia.de

Weekly Downloads

Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure token storage, automatic token refreshing.

Repository (GitHub)
View/report issues

Topics

#authentication #network #oauth #web

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

BSD-2-Clause (license)

Dependencies

crypto, flutter, flutter_secure_storage, flutter_web_auth_2, http, meta, random_string, web

More

Packages that depend on oauth2_client