frappe_oauth2_flutter_sdk 0.1.2 copy "frappe_oauth2_flutter_sdk: ^0.1.2" to clipboard
frappe_oauth2_flutter_sdk: ^0.1.2 copied to clipboard

A comprehensive Flutter SDK for Frappe OAuth2 authentication with automatic platform configuration and token management.

Changelog #

0.1.2 - 2024-01-16 #

Fixed #

  • Removed package attribute from plugin's AndroidManifest.xml to fix Android Gradle plugin compatibility
  • Resolves "Incorrect package attribute" error in newer Android Gradle versions

Technical Details #

  • Android Gradle plugin no longer supports package attribute in library manifests
  • Namespace is now defined in build.gradle instead
  • This fix ensures compatibility with latest Android build tools

0.1.1 - 2024-01-16 #

Fixed #

  • Improved redirect URI configuration documentation to prevent mismatch errors
  • Added comprehensive platform setup guides for Android and iOS
  • Enhanced example app with proper OAuth2 callback activity configuration
  • Added troubleshooting guide for common redirect issues

Added #

  • Detailed redirect URI configuration examples in README
  • Three-way configuration matching guide (Frappe Server, Flutter Code, Platform Config)
  • Platform-specific troubleshooting section in documentation
  • Example configurations for Android (AndroidManifest.xml) and iOS (Info.plist)
  • Debug steps for testing redirect URIs

Documentation #

  • Updated README with redirect URI explanation and examples
  • Enhanced Platform Setup Guide with troubleshooting section
  • Added common error scenarios and solutions
  • Included debug commands for testing OAuth2 callbacks

0.1.0 - 2024-01-15 #

Added #

  • Complete OAuth2 authorization code flow with PKCE support
  • Cross-platform support (iOS, Android, Web, macOS, Windows, Linux)
  • Headless design with no UI components - developers control the interface
  • SharedPreferences-based token storage for simplicity
  • Automatic token refresh functionality
  • Comprehensive error handling with specific exception types
  • 85+ unit tests with high code coverage
  • Complete API documentation and guides

Features #

  • Factory constructor pattern for clean initialization (FrappeOAuthClient.create())
  • Configuration validation to prevent common setup errors
  • Deep link security validation for OAuth callbacks
  • PKCE implementation for enhanced mobile security
  • Support for custom scopes and redirect schemes
  • Clean, intuitive API with helper getters (isSuccess, isCancelled, etc.)

Documentation #

  • Quick start guide for 10-minute setup
  • Complete API reference with examples
  • Platform setup guides for all supported platforms
  • Best practices documentation for security and architecture
  • Comprehensive troubleshooting guide

Security #

  • PKCE (Proof Key for Code Exchange) implementation
  • Secure token storage with validation
  • Deep link validation to prevent security issues
  • Configuration validation to prevent misconfigurations
  • No client secrets required (more secure for mobile apps)
2
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter SDK for Frappe OAuth2 authentication with automatic platform configuration and token management.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, flutter, flutter_secure_storage, flutter_web_auth_2, flutter_web_plugins, hive, hive_flutter, http, json_annotation, plugin_platform_interface, shared_preferences, uuid, web

More

Packages that depend on frappe_oauth2_flutter_sdk

Packages that implement frappe_oauth2_flutter_sdk