oauth_webauth 5.1.0
oauth_webauth: ^5.1.0 copied to clipboard
This plugin provides an alternative to AppAuth using WebView for OAuth 2.0 authorization/authentication.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Types of changes
Addedfor new features.Changedfor changes in existing functionality.Deprecatedfor soon-to-be removed features.Removedfor now removed features.Fixedfor any bug fixes.Securityin case of vulnerabilities.
5.1.0 #
Added #
userAgentcan now be set inOAuthConfigurationandBaseConfiguration.useHybridCompositioncan now be set inOAuthConfigurationandBaseConfiguration.
5.0.0+1 #
Changed #
flutter_inappwebviewplugin updated to new breaking change ^6.0.0- iOS sample project minimum deploy target updated to 13
- Android sample project targetSdkVersion updated to 34
- Sample project updated
4.0.3+1 #
Changed #
- WebView updated with
transparentBackground: trueso no white background before loading the page.
4.0.2+1 #
4.0.1+2 #
Changed #
- Added support for Dart 3.
- Replaced window singleton with FlutterView.
- Updated
clearCacheandclearAllfunctions with optionalBuildContextto supportFlutterView
Thanks @frederikstonge) for PR #12
4.0.0+14 #
Added #
- Added support to
clearCacheandclearCookiesdirectly fromOAuthWebAuth.instance.
Changed #
OauthWebScreenrenamed toOAuthWebScreenandOauthWebViewrenamed toOAuthWebView.- Full code refactor to use
BaseConfiguration(...)andOAuthConfiguration(...). See readme for migration. - SDK constraints updated to
sdk: ">=2.19.0 <3.0.0"andflutter: ">=2.0.0".
Fixed #
- Fixed bug in redirect url handling that caused
invalid_grantdue to content after#in url.
3.1.2+13 #
Fixed #
- Fixed bug on BaseOAuthFlowMixin onSuccess function that caused wrong flow cancellation on baseUrl redirect.
3.1.1+12 #
Fixed #
- Fixed bug on BaseWebView setState call after widget no longer appears in the widget tree.
3.1.0+11 #
Added #
- Detailed documentation added to OauthWebView parameters.
- New parameters added:
delimiter,basicAuth,httpClient. Each param is described in the OauthWebView class.
3.0.0+10 #
Added #
- Web support added. Despite this is a breaking change update, it really doesn't brake anything, you can still use it with no change required. Nevertheless if you want Web support to be enabled then you have to do an
init()call, check README to see details. shared_preferencesdependency added to support temporary state storage.
2.1.0+8 #
Added #
baseUrladded toOauthWebViewandOauthWebScreento allow to get back to application when web view gets redirected to baseUrl. AbaseUrlredirect will be treated as aonCancel.
2.0.1+6 #
Changed #
- WidgetsBinding.instance?.addObserver(this) added null-safety operator for stable channel compatibility.
2.0.0+5 #
Added #
- BaseWebView to handle basic web view with redirects. (OAuthWebView uses this under the hook).
- Boolean flags for controlling toolbar buttons visibility.
GlobalKeys added to BaseWebScreen and OauthWebScreen to allow webview control from outside.urlStreamadded to allow to asynchronously indicate web view to navigate to a different url.
Changed #
- OAuthWebView extends from BaseWebView.
- OAuthWebView
onSuccessfunction changed toonSuccessAuth.
Fixed #
useHybridCompositionset to true for Android to avoid bugs with keyboard on recent Android versions > 10.- AndroidManifest from example project updated to allow project to run in Android 12.
- Minor bugs fixed on UI state update.
1.1.0+3 - 2022-03-02 #
Added #
contentLocaleproperty can be set to indicate the web auth to use that locale for internationalization.
1.0.0+1 #
- First release