Skip to content

Commit

Permalink
v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
chipscal committed Mar 14, 2022
1 parent 52c4478 commit eb9c5a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.7
Bug fix:
* Web: solved issue when using REDIRECT method and user clicks forgot password and either INIT and PASSWORD_RESET callbacks are
triggered. Added session storage clean up before triggering PASSWORD_RESET callback to prevent interaction_in_progress MSAL error when calling the next authority.

## 0.0.6
Bug fix:
* Web: solved issue when user click back button from policy interactive that prevented further policies to be called
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.6"
version: "0.0.7"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
3 changes: 3 additions & 0 deletions lib/web/B2CProviderWeb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,13 @@ class B2CProviderWeb {

if (_lastHash != null && _lastHash != "#/") {
if (_lastHash!.contains(_B2C_PASSWORD_CHANGE)) {
window.sessionStorage.removeWhere((key, value) => key.startsWith("msal"));

_emitCallback(B2COperationResult(
tag,
B2COperationSource.POLICY_TRIGGER_INTERACTIVE,
B2COperationState.PASSWORD_RESET));
return;
} else {
var result = await _b2cApp!.handleRedirectFuture(_lastHash);
if (result != null) {
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: flutter_azure_b2c
description: A flutter library to handle the Azure B2C authentication protocol
version: 0.0.6
version: 0.0.7
homepage: "https://github.com/nodriver-ai/flutter_azure_b2c"

environment:
Expand Down

0 comments on commit eb9c5a8

Please sign in to comment.