Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
## 3.0.0, May 3, 2023
You can find the full changelog [here](https://developer.onewelcome.com/flutter/plugin/v2-x) and an overview containing the upgrade instructions [here](https://developer.onewelcome.com/flutter/plugin/v2-0).

[iOS] Wrapper SDK now uses the latest OneWelcome iOS native SDK 12.2.2

* Events are now propagated using Streams and have been renamed to more accurately describe their purpose.
* Removed the following events
- eventOther
- openPinAuthenticator
- eventError
* startApplication now no longer requires a OneginiListener parameter.
* All BuildContext requirements from functions have been removed.
* Resource requests now allow absolute paths.
* Allow for Resource Requests to other resource servers than the one in the tokenserver config file, this is only possible if the server has a correct certificate.
* Updated several parameters and return types of functions.
* Functions are now fully typesafe and nullsafe due to the use of [Pigeon](https://pub.dev/packages/pigeon) internally.
* Updates several functions to no longer return a boolean status but instead resolve/reject.
- setPreferredAuthenticator
- deregisterBiometricAuthenticator
- logout
- authenticateDevice
- validatePinWithPolicy
- authenticateUserImplicitly
- deregisterUser
* submitSuccessAction and submitErrorAction for custom registration no longer require an identity provider id.
* getAppToWebSingleSignOn now returns the actual error code instead of a general error when failing.
* OneginiPinRegistrationCallback.acceptAuthenticationRequest No longer takes a map as a second argument.
* Renamed several resourceRequest functions and added a generic requestResource which takes a type as extra argument.
* Reworked error codes and added constants for all errors(wrapper and native) in lib/errors/error_codes.dart
* Reworked mobileAuthWithOtp.
* Reworked authentication
- Removed getRegisteredAuthenticators
- Removed getAllAuthenticators
- Removed registerAuthenticator
- Added deregisterBiometricAuthenticator
- Added registerBiometricAuthenticator
- Added getBiometricAuthenticator
- Added getPreferredAuthenticator
- Changed setPreferredAuthenticator
- Changed authenticateUser
* Allow sdk <4.0.0

## 2.0.1, March 2, 2023
Updated the README

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ in pubspec.yaml add this:

dependencies:

onegini: 2.0.1
onegini: 3.0.0

`flutter clean`

Expand Down
12 changes: 5 additions & 7 deletions example/lib/screens/user_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,14 @@ class _UserScreenState extends State<UserScreen> with RouteAware {
),
body: _children[_currentIndex],
drawer: Drawer(
child: Column(
child: ListView(
children: [
DrawerHeader(
child: Container(),
),
ListTile(
title: Text("ProfileId: ${profileId}"),
leading: Icon(Icons.person),
child: ListTile(
title: Text("ProfileId: ${profileId}"),
leading: Icon(Icons.person),
),
),
Divider(),
ListTile(
title: Text("Authenticators"),
leading: Icon(Icons.lock_rounded),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension OneginiModuleSwift {
completion(.failure(SdkError(.notFoundUserProfile).flutterError()))
return
}
let authenticator = SharedUserClient.instance.authenticators(.all, for: profile).first(where: { $0.type == authenticatorType })
let authenticator = SharedUserClient.instance.authenticators(.registered, for: profile).first(where: { $0.type == authenticatorType })

bridgeConnector.toLoginHandler.authenticateUser(profile, authenticator: authenticator) { result in
completion(result)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: onegini
description: The Onegini Flutter Plugin is a plugin that allows you to utilize the Onegini Mobile SDKs in your Flutter applications.
version: 2.0.1
version: 3.0.0
homepage: https://www.onegini.com

environment:
Expand Down