GithubHelp home page GithubHelp logo

francessco121 / msal-js-dart Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 9.0 283 KB

A Dart wrapper for the "Microsoft Authentication Library for JavaScript (MSAL.js)".

Home Page: https://pub.dev/packages/msal_js

License: MIT License

Dart 94.37% HTML 5.63%
dart dartlang msal wrapper activedirectory active-directory b2c

msal-js-dart's Introduction

Pub Version

MSAL.js for Dart

A Dart wrapper for the Microsoft Authentication Library for JavaScript (MSAL.js).

Note: This package wraps the MSAL.js 2.x (msal-browser) library. For 1.x (msal-core) support, please see the latest 1.x release of this package.

Contents

Install MSAL.js

This package is just a Dart wrapper and does not come with a build of MSAL.js. Please refer to the MSAL.js documentation for installation. Please note that you will need a CDN build of MSAL.js and not an NPM build.

Version Compatibility

This package will match the version of MSAL.js which it supports up to the minor revision. For example, version 2.14.0 of this package supports MSAL.js 2.14.x. If MSAL.js increments its minor version without adding or changing its API surface, this package will not have a matching release since there's nothing to update. Additionally, this package may have patch releases that do not reflect the patch releases from MSAL.js.

Avoid using versions of MSAL.js older than versions of this package. APIs may be available in Dart that do not exist in the JavaScript API and can lead to runtime failures. Newer minor versions of MSAL.js should work fine since both libraries follow semantic versioning.

Usage

Please see the various examples and sample applications for usage information in various scenarios such as:

Additionally, please see the official MSAL.js usage documentation. The examples and samples provided by this package do not cover everything, you will need to read the official MSAL.js documentation to fully understand how to use MSAL.

Class, function, and parameter names are almost all the same between this wrapper and MSAL.js (please see "Differences from MSAL.js" for more information). Following MSAL.js examples with Dart should be straight-forward.

Differences from MSAL.js

This package has a few minor differences from the JavaScript and TypeScript APIs in MSAL.js. These are mainly due to incompatibilities between TypeScript and Dart and quality-of-life differences to provide a more idiomatic Dart API.

  • APIs returning JavaScript Promises instead return Dart Futures.
  • TypeScript string unions are represented as Dart enums.
  • MSAL errors are represented as Dart exceptions and use the suffix Exception instead of Error (e.g. AuthError in MSAL.js is AuthException in this wrapper).
  • Typescript interfaces are represented as a full Dart type. Instead of passing a map which meets the interface requirements, an actual type must be constructed (e.g. instead of loginPopup({scopes: []}) you would do loginPopup(PopupRequest()..scopes = [])).
  • PublicClientApplication.handleRedirectPromise was renamed to handleRedirectFuture since it does not return a promise in the Dart API.

Contributing

Contributions to this package are more than welcome! If you have an immediate need for a new MSAL feature to be wrapped or for a bug to be fixed, please consider opening a pull request.

Please see our full contribution guide for more information.

msal-js-dart's People

Contributors

francessco121 avatar nyarian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

msal-js-dart's Issues

Not getting account information after successfull login

Describe the bug
I am using this package and after successfully login i am redirecting to my redirectURl page but i am not getting into the popup function callback and not getting the user account information

To reproduce
Steps to reproduce the behavior:

  1. Try to Login
  2. After login redirect url is coming which is fine
  3. But not getting user account information.

Expected behavior
Should return user account information

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Flutter: yes
  • Browser: chrome
  • Dart msal_js Version: ^1.3.0
  • JavaScript msal.js Version: 1.1.3

I want to get user account information

Flutter - loginRedirect is failing after returning back to the app

Describe the bug
On using the example provided with loginRedirect, after logging in b2c tenant and returning back to the app - I am getting below error - Please can you look into it

client.js:22488 Error from backend:

Error: NoSuchMethodError: The method 'shutDown' was called on null.
Receiver: null
Tried calling: shutDown()

Stack Trace:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 DevHandler._handleConnectRequest (package:dwds/src/handlers/dev_handler.dart:383:28)
#2 DevHandler._handleConnection. (package:dwds/src/handlers/dev_handler.dart:257:21)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
#6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#7 _DelayedData.perform (dart:async/stream_impl.dart:611:14)
#8 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)
#9 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7)
#10 _rootRun (dart:async/zone.dart:1182:47)
#11 _CustomZone.run (dart:async/zone.dart:1093:19)
#12 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#13 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#14 _rootRun (dart:async/zone.dart:1190:13)
#15 _CustomZone.run (dart:async/zone.dart:1093:19)
#16 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#17 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#18 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

(anonymous) @ client.js:22488
(anonymous) @ client.js:3824
call$2 @ client.js:11021
_asyncStartSync @ client.js:3788
$call$body$main__closure @ client.js:22496
call$1 @ client.js:22423
_rootRunUnary @ client.js:4158
runUnary$2$2 @ client.js:12326
runUnaryGuarded$1$2 @ client.js:12258
_sendData$1 @ client.js:11809
perform$1 @ client.js:11961
call$0 @ client.js:12010
_microtaskLoop @ client.js:3991
_startMicrotaskLoop @ client.js:3997
call$1 @ client.js:10890
invokeClosure @ client.js:1205
(anonymous) @ client.js:1224
childList (async)
call$1 @ client.js:10900
_scheduleAsyncCallback @ client.js:4011
_rootScheduleMicrotask @ client.js:4205
scheduleMicrotask @ client.js:4040
schedule$1 @ client.js:11992
_addPending$1 @ client.js:11800
_sendData$1 @ client.js:11632
add$1 @ client.js:11532
_onIncomingMessage$1 @ client.js:22036
eval @ VM231:3
invokeClosure @ client.js:1205
(anonymous) @ client.js:1224

Environment (please complete the following information):

  • Flutter: [yes]
  • Browser: [chrome]
  • Dart msal_js Version: [1.3.0]
  • JavaScript msal.js Version: [1.3.2]

Address some documentation issues

  • AuthOptions.authority:
    • Markdown breaks some parts (https://<instance>/<tenant> shows up as https:///)
    • B2C format listed is the old version, should use b2clogin.com
  • set UserAgentApplication.authority: Same issue as AuthOptions.authority
  • Should go over all of the APIs that use docs straight from msal.js again, some of it probably changed.
  • Go over example/example.md again, the msal.js page it's based off of has had some minor updates.

Issues acquiring token interactively

Describe the bug
When needing to acquire a token interactively, we are facing the issue that:

  • If you use the redirect method, the subsequent acquireTokenSilent fails due to most browsers blocking third-party cookies now. This then follows up with another redirect token request, and you fall into an infinite loop.
  • If you use the popup method, most browsers block popups these days. So that fails.

Basically after the initial token expires, there is no way to get a new one.

To reproduce
Basic get token code:

    if (_msalUserAgentApp.getAccount() == null) {
      throw Exception('Should not attempt to get token if not logged in');
    }

    final tokenRequest = new AuthRequest()..scopes = scopes;
    try {
      final response = await _msalUserAgentApp.acquireTokenSilent(tokenRequest);
      return response.accessToken;
    } on InteractionRequiredAuthException {
      final response = await _msalUserAgentApp.acquireTokenPopup(tokenRequest);
      return response.accessToken;
    } catch (e) {
      throw e;
    }

Looking for some guidance as to workarounds if there are any?
All threads related to similar issues posted on the MSAL git pages and elsewhere seem to all suggest moving to MSAL 2.0.
However this package, nor any others, seem to support this.

Environment (please complete the following information):

  • Flutter: yes
  • Browser: safari, chrome
  • Dart msal_js Version: 1.3.0
  • JavaScript msal.js Version: 1.3.1

cdn?

Description

I'm fairly new to Flutter and Dart. But why do you use cdn-version in index.html in you examples? Is it not sufficient to use the msal-library specified in .yaml ? I'm asking because the app crashes if i don't insert the cdn-script shown in your examples index-file.

Flutter Web

Have you gotten this to work with flutter web yet?

Null safety

Package maintainers are now encouraged to migrate packages to use null safety even though the feature is in beta.
Migration guide: https://dart.dev/null-safety/migration-guide

Checklist:

  • Wait for dependencies to publish a null safe version
    • js
    • pedantic
    • test
  • Decide on version number. Guide says it should be considered a breaking change, bringing this package to 2.0.0... this will however take it out of line with msal.js... ๐Ÿ˜•
    • Applications should be using an exact version number anyway to make sure it matches their install of msal.js, releasing it with a normal version (ex. 1.4.0) may not cause problems.
    • Resolution: Null safety will be available as version 1.4.0-nullsafety and stay as a prerelease version only for MSAL 1.x. When this package moves on to support MSAL 2.x, null safety will be supported by default.
  • Migrate (#21)
  • Test

Update API to support MSAL 2.14

MSAL 2.14 is the latest version of MSAL.js and should be the initial target for this package's 2.x release.

  • PublicClientApplication
  • Exceptions
  • Logger
  • Login APIs
  • Token APIs
  • Account APIs
  • Event APIs
  • Custom network/navigation APIs

Support msal-browser v3.x

Release notes: https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-browser-v3.0.0

  • Update existing Dart APIs to support msal-browser v3.x.
  • Support new common msal-browser v3.x flows (if any exist that aren't already supported).
    • This strictly includes APIs that are included in getting started documentation and common auth scenarios.
    • More advanced/less common APIs can be supported in later minor updates.
  • Fix Dart 3 JS error handling (#39).
    • This should also be patched for v2.x.

New Version Scheme

It's become increasingly difficult to know exactly which types/functions in MSAL.js should be wrapped by this package. There's a handful of functions that are only relevant for other first-party libraries like msal-angular/msal-react. Additionally, this package occasionally needs to wrap types found in msal-common, depending on if they are found in public msal-browser APIs.

Previous versions of this package had the goal of matching the version of MSAL.js down to the major and minor version numbers. This means that the package version can only be bumped up if it supports all APIs added in that minor version. In addition to it being unclear which APIs need to be wrapped, not all APIs are relevant to most users. Considerable time is spent wrapping these extremely uncommon advanced APIs, which also slows down updating this package.

To address the above concerns, it's worth changing this package to only match the major version of MSAL.js and allow minor versions to support any APIs found across the major version, even if they weren't added in the exact minor version that this package is being bumped to. This would allow development on this package to focus 99% of its effort on the super common scenarios and allow flexibility with supporting less common APIs as needed through updates by myself or from contributors, without worrying about the version number.

The downside to this is that it's less obvious which features are available via this wrapper. However, this can be communicated clearly in the documentation. The flexibility of allowing more frequent smaller-scoped contributions/updates, in my opinion, more than makes up for this.

Cannot read property 'Logger' of undefined

Describe the bug
A clear and concise description of what the bug is.

To reproduce
Steps to reproduce the behavior:

  1. set up the client id const String clientId=' '
  2. setup client authority const String authority = 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize';
  3. setup the scope const List<String> scopes = ['openid profile email'];
    Expected behavior
    Am expecting a redirect to azure AD, instead that error is thrown

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment (please complete the following information):

  • Flutter: [yes]
  • Browser: [chrome]
  • Dart msal_js Version: [dart: ">=2.12.0-0.0 <3.0.0"]
  • JavaScript msal.js Version: [ msal_js: ^1.3.0]

Additional context
Add any other context about the problem here.

AD B2C authority not working

Describe the bug
I am using AD B2C tenant. And I am using the authority in the form of https:///tfp/// as mentioned in the configuration.dart for Azure B2C.
But it is going to the wrong authorize endpoint starting with https://login.microsoftonline.com and I am getting bad request error.

Environment (please complete the following information):

  • Flutter: [yes]
  • Browser: [e.g. chrome]
  • Dart msal_js Version: [e.g. 1.3.0 ]
  • JavaScript msal.js Version: [e.g. 1.3.4]

MSAL Installation

First off, let me preface by saying my knowledge of JavaScript is rudimentary at best.
I'm trying to install the MSAL Library itself so that the flutter project can see it, and I'm at a complete loss.

Just to get started, I've copied and pasted the web example. Then, I downloaded the MSAL library from npm and moved it into my lib folder.

I've also tried adding some script declarations to the body of the index.html.

The ultimate goal is to get this working cross platform (web/android/iOS), and I know that I'm doing something wrong and I would appreciate a little guidance.

How to get accessToken

Hello
I have a rudimentary knowledge of MSAL and Azure AD B2C.

Login successfully using this plug-in and id_token was verified.
However, if I try to check accessToken, NULL will be returned.
(ex : print('accessToken : ${response.accessToken}');)

Using AcquireTokenRedirect() or AcquireTokenSilent() seems like I can get accessToken. But I don't know how to use it. :$

This is my code made using the Flutter Web example.

Finally, I want to update accesstoken to getx โ†’ When I request API, I want to include accessToken in the header.

import 'package:xxxxxx/binding/init_binding.dart';
import 'package:xxxxxx/pages/desktop_home.dart';
import 'package:xxxxxx/pages/mobile_home.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';
import 'package:msal_js/msal_js.dart';
import 'package:xxxxxx/common/common.dart';

void main() {
  // Create an MSAL UserAgentApplication
  final userAgentApplication = UserAgentApplication(
    Configuration()
      ..auth = (AuthOptions()
        ..clientId = clientId
        ..authority = authority
        ..validateAuthority = false
        ..knownAuthorities = [knownAuthorities]
        ..redirectUri = redirectUri),
  );
  userAgentApplication.handleRedirectCallback(_redirectCallback);

  runApp(MyApp(
    userAgentApplication: userAgentApplication,
  ));
}

void _redirectCallback(AuthException? error, [AuthResponse? response]) {
  if (error != null) {
    // Redirect login failed
    print('MSAL: ${error.errorCode}:${error.errorMessage}');
  } else {
    // Redirect login succeeded
    print('Redirect login successful. name: ${response!.account!.name}');
    print('tokenType : ${response.tokenType}');
    print('accessToken : ${response.accessToken}');
    print('idToken : ${response.idToken}');
    print('accountState : ${response.accountState}');
    print('expiresOn : ${response.expiresOn}');
    print('tenantId : ${response.tenantId}');
    print('uniqueId : ${response.uniqueId}');
  }
}

class MyApp extends StatelessWidget {
  final UserAgentApplication userAgentApplication;

  MyApp({required this.userAgentApplication});
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Flutter2',
      theme: ThemeData(
        primaryColor: Colors.grey,
        appBarTheme: AppBarTheme(color: Colors.grey),
      ),
      home: MyHomePage(userAgentApplication: userAgentApplication),
      initialBinding: InitBinding(),
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
    );
  }
}

class MyHomePage extends StatefulWidget {
  final UserAgentApplication userAgentApplication;

  MyHomePage({
    required this.userAgentApplication,
    Key? key,
  }) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  Account? _account;

  @override
  void initState() {
    super.initState();

    _account = widget.userAgentApplication.getAccount();
  }

  void _loginRedirect() {
    widget.userAgentApplication.loginRedirect(AuthRequest()..scopes = scopes);
  }

  void _logout() {
    widget.userAgentApplication.logout();
  }

  @override
  Widget build(BuildContext context) {
    if (_account == null) {
      _loginRedirect();
      return Scaffold(
        appBar: AppBar(
          title: Text('Flutter2'),
        ),
        body: Center(
          child: CircularProgressIndicator(),
        ),
      );
    } else {
      return LayoutBuilder(
        builder: (BuildContext context, BoxConstraints constraints) {
          if (constraints.maxWidth > 600) {
            return DesktopHome();
          } else {
            return MobileHome();
          }
        },
      );
    }
  }
}

MSAL 2.16 support

Release notes: https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-browser-v2.16.0

API changes:

  • Adds BrowserUtils.isInPopup

Note: There's some other functions in BrowserUtils that could be worth wrapping as well. It's just difficult to know which functions are meant only for internal MSAL packages (like msal-angular), which they aren't afraid of breaking in a non-major release. Could also wrap isInIframe, definitely should avoid functions that just throw an error or modify MSAL state.

[Flutter Web] authCallback not call

Pls check for me : handleRedirectCallback not callback and loginpopup not working when publish to websv but working when debug.
Im using flutter.

Screen Shot 2020-07-02 at 10 00 14

Screen Shot 2020-07-02 at 10 01 30

Screen Shot 2020-07-02 at 10 01 41

Screen Shot 2020-07-02 at 10 07 44

Support for MSAL v0.2.4

  • UserAgentApplication
    • redirectUri can now be either a string or a synchronous function which returns a string.
    • postLogoutRedirectUri can now be either a string or a synchronous function which returns a string.
    • tokenReceivedCallback is now allowed to be null.

Facing issue with MSAL integration

Description

Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
../../../.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../../.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/utils/error_utils.dart:18:18: Error: Method not found: 'promiseToFuture'.
return await promiseToFuture(promise);
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/utils/promise_utils.dart:9:26: Error: Method not found: 'allowInterop'.
return interop.Promise(allowInterop((resolve, reject) {
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/logger.dart:46:34: Error: The method 'allowInterop' isn't defined for the class 'LoggerOptions'.

  • 'LoggerOptions' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.loggerCallback = allowInterop(jsCallback);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:19:9: Error: Method not found: 'allowInterop'.
    allowInterop((String url, interop.NavigationOptions options) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:24:9: Error: Method not found: 'allowInterop'.
    allowInterop((String url, interop.NavigationOptions options) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:17:10: Error: Method not found: 'jsify'.
    return jsify(<String, dynamic>{
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:21:28: Error: Method not found: 'allowInterop'.
    'sendGetRequestAsync': allowInterop((String url,
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:32:29: Error: Method not found: 'allowInterop'.
    'sendPostRequestAsync': allowInterop((String url,
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:20:10: Error: Method not found: 'jsify'.
    return jsify(<String, dynamic>{
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/public_client_application.dart:88:41: Error: The method 'allowInterop' isn't defined for the class 'PublicClientApplication'.
  • 'PublicClientApplication' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    return _jsObject.addEventCallback(allowInterop((message) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/request.dart:34:61: Error: The method 'allowInterop' isn't defined for the class 'EndSessionRequest'.
  • 'EndSessionRequest' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.onRedirectNavigate = value == null ? null : allowInterop(value);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/request.dart:144:61: Error: The method 'allowInterop' isn't defined for the class 'RedirectRequest'.
  • 'RedirectRequest' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.onRedirectNavigate = value == null ? null : allowInterop(value);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart:49:15: Error: Method not found: 'jsify'.
    value = jsify(value);
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_object_map_proxy.dart:20:21: Error: The method 'getProperty' isn't defined for the class 'JsObjectMapProxy'.
  • 'JsObjectMapProxy' is from 'package:msal_js/src/js_proxies/js_proxies.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getProperty'.
    return jsDecode(getProperty(_jsObject, key!));
    ^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_object_map_proxy.dart:25:5: Error: The method 'setProperty' isn't defined for the class 'JsObjectMapProxy'.
  • 'JsObjectMapProxy' is from 'package:msal_js/src/js_proxies/js_proxies.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setProperty'.
    setProperty(_jsObject, key, jsEncode(value));
    ^^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ajs; message=StandardFileSystem only supports file:* and data:* URIs)
    #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
    #1 asFileUri (package:vm/kernel_front_end.dart:623:37)
    #2 writeDepfile (package:vm/kernel_front_end.dart:763:21)
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) #5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24) Failed to package /Users/bayer-capgemini/Documents/Flutter_Practice/my_app. Command PhaseScriptExecution failed with a nonzero exit code

Showing Recent Messages
MkDir /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
/bin/mkdir -p /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app

MkDir /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app/Frameworks (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
/bin/mkdir -p /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app/Frameworks

ProcessProductPackaging /Users/bayer-capgemini/Library/MobileDevice/Provisioning\ Profiles/eaf627da-769d-478e-87a1-a9c9224a9a63.mobileprovision /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app/embedded.mobileprovision (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
builtin-productPackagingUtility /Users/bayer-capgemini/Library/MobileDevice/Provisioning\ Profiles/eaf627da-769d-478e-87a1-a9c9224a9a63.mobileprovision -o /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app/embedded.mobileprovision

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Entitlements.plist (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Entitlements.plist

ProcessProductPackaging "" /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner.app.xcent (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios

Entitlements:

{
"application-identifier" = "BXC5N2D83U.com.bayer.bs.imecqa";
"com.apple.developer.team-identifier" = BXC5N2D83U;
"get-task-allow" = 1;
"keychain-access-groups" =     (
    "BXC5N2D83U.com.microsoft.adalcache",
    "BXC5N2D83U.com.bayer.bs.imecqa"
);

}

builtin-productPackagingUtility -entitlements -format xml -o /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner.app.xcent

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/all-product-headers.yaml (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/all-product-headers.yaml

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-own-target-headers.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-own-target-headers.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-project-headers.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-project-headers.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-generated-files.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-generated-files.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-all-non-framework-target-headers.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-all-non-framework-target-headers.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-all-target-headers.hmap (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-all-target-headers.hmap

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BAA41AACE1292367A7FA5640.sh (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BAA41AACE1292367A7FA5640.sh

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BAA41AACE1292367A7FA5640.sh (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
/bin/sh -c /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BAA41AACE1292367A7FA5640.sh

WriteAuxiliaryFile /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
write-file /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh

PhaseScriptExecution Run\ Script /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh (in target 'Runner' from project 'Runner')
cd /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export ACTION=build
export AD_HOC_CODE_SIGNING_ALLOWED=NO
export ALLOW_TARGET_PLATFORM_SPECIALIZATION=NO
export ALTERNATE_GROUP=staff
export ALTERNATE_MODE=u+w,go-w,a+rX
export ALTERNATE_OWNER=bayer-capgemini
export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
export ALWAYS_SEARCH_USER_PATHS=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
export APPLE_INTERNAL_DIR=/AppleInternal
export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
export APPLICATION_EXTENSION_API_ONLY=NO
export APPLY_RULES_IN_COPY_FILES=NO
export APPLY_RULES_IN_COPY_HEADERS=NO
export ARCHS=arm64
export ARCHS_STANDARD=arm64\ armv7
export ARCHS_STANDARD_32_64_BIT=armv7\ arm64
export ARCHS_STANDARD_32_BIT=armv7
export ARCHS_STANDARD_64_BIT=arm64
export ARCHS_STANDARD_INCLUDING_64_BIT=arm64\ armv7
export ARCHS_UNIVERSAL_IPHONE_OS=armv7\ arm64
export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL=iPad5,1
export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION=15.3
export AVAILABLE_PLATFORMS=appletvos\ appletvsimulator\ driverkit\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
export AppIdentifierPrefix=BXC5N2D83U.
export BITCODE_GENERATION_MODE=marker
export BUILD_ACTIVE_RESOURCES_ONLY=YES
export BUILD_COMPONENTS=headers\ build
export BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products
export BUILD_LIBRARY_FOR_DISTRIBUTION=NO
export BUILD_ROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products
export BUILD_STYLE=
export BUILD_VARIANTS=normal
export BUILT_PRODUCTS_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos
export BUNDLE_CONTENTS_FOLDER_PATH_deep=Contents/
export BUNDLE_EXECUTABLE_FOLDER_NAME_deep=MacOS
export BUNDLE_FORMAT=shallow
export BUNDLE_FRAMEWORKS_FOLDER_PATH=Frameworks
export BUNDLE_PLUGINS_FOLDER_PATH=PlugIns
export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH=PrivateHeaders
export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH=Headers
export CACHE_ROOT=/var/folders/qc/znh5f4712_5cgngwfh95dyzm0000gp/C/com.apple.DeveloperTools/13.2.1-13C100/Xcode
export CCHROOT=/var/folders/qc/znh5f4712_5cgngwfh95dyzm0000gp/C/com.apple.DeveloperTools/13.2.1-13C100/Xcode
export CHMOD=/bin/chmod
export CHOWN=/usr/sbin/chown
export CLANG_ANALYZER_NONNULL=YES
export CLANG_CXX_LANGUAGE_STANDARD=gnu++0x
export CLANG_CXX_LIBRARY=libc++
export CLANG_ENABLE_MODULES=YES
export CLANG_ENABLE_OBJC_ARC=YES
export CLANG_MODULES_BUILD_SESSION_FILE=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
export CLANG_WARN_BOOL_CONVERSION=YES
export CLANG_WARN_COMMA=YES
export CLANG_WARN_CONSTANT_CONVERSION=YES
export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
export CLANG_WARN_EMPTY_BODY=YES
export CLANG_WARN_ENUM_CONVERSION=YES
export CLANG_WARN_INFINITE_RECURSION=YES
export CLANG_WARN_INT_CONVERSION=YES
export CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
export CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
export CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER=NO
export CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
export CLANG_WARN_STRICT_PROTOTYPES=YES
export CLANG_WARN_SUSPICIOUS_MOVE=YES
export CLANG_WARN_UNREACHABLE_CODE=YES
export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
export CLASS_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/JavaClasses
export CLEAN_PRECOMPS=YES
export CLONE_HEADERS=NO
export COCOAPODS_PARALLEL_CODE_SIGN=true
export CODESIGNING_FOLDER_PATH=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app
export CODE_SIGNING_ALLOWED=YES
export CODE_SIGNING_REQUIRED=YES
export CODE_SIGN_CONTEXT_CLASS=XCiPhoneOSCodeSignContext
export CODE_SIGN_ENTITLEMENTS=Runner/Runner.entitlements
export CODE_SIGN_IDENTITY=iPhone\ Developer
export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
export CODE_SIGN_STYLE=Manual
export COLOR_DIAGNOSTICS=NO
export COMBINE_HIDPI_IMAGES=NO
export COMPILER_INDEX_STORE_ENABLE=Default
export COMPOSITE_SDK_DIRS=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/CompositeSDKs
export COMPRESS_PNG_FILES=YES
export CONFIGURATION=Debug
export CONFIGURATION_BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos
export CONFIGURATION_TEMP_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos
export CONTENTS_FOLDER_PATH=Runner.app
export COPYING_PRESERVES_HFS_DATA=NO
export COPY_HEADERS_RUN_UNIFDEF=NO
export COPY_PHASE_STRIP=NO
export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
export CORRESPONDING_SIMULATOR_PLATFORM_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform
export CORRESPONDING_SIMULATOR_PLATFORM_NAME=iphonesimulator
export CORRESPONDING_SIMULATOR_SDK_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk
export CORRESPONDING_SIMULATOR_SDK_NAME=iphonesimulator15.2
export CP=/bin/cp
export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
export CURRENT_ARCH=undefined_arch
export CURRENT_PROJECT_VERSION=1
export CURRENT_VARIANT=normal
export DART_OBFUSCATION=false
export DEAD_CODE_STRIPPING=YES
export DEBUGGING_SYMBOLS=YES
export DEBUG_INFORMATION_FORMAT=dwarf
export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
export DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
export DEFINES_MODULE=NO
export DEPLOYMENT_LOCATION=NO
export DEPLOYMENT_POSTPROCESSING=NO
export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=miphoneos-version-min
export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-miphoneos-version-min=
export DEPLOYMENT_TARGET_LD_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_LD_FLAG_NAME=ios_version_min
export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_SUGGESTED_VALUES=9.0\ 9.1\ 9.2\ 9.3\ 10.0\ 10.1\ 10.2\ 10.3\ 11.0\ 11.1\ 11.2\ 11.3\ 11.4\ 12.0\ 12.1\ 12.2\ 12.3\ 12.4\ 13.0\ 13.1\ 13.2\ 13.3\ 13.4\ 13.5\ 13.6\ 14.0\ 14.1\ 14.2\ 14.3\ 14.4\ 14.5\ 14.6\ 14.7\ 15.0\ 15.1\ 15.2
export DERIVED_FILES_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources
export DERIVED_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources
export DERIVED_SOURCES_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources
export DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER=NO
export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications
export DEVELOPER_BIN_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr/bin
export DEVELOPER_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer
export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Library/Frameworks
export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Library/Frameworks
export DEVELOPER_LIBRARY_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Library
export DEVELOPER_SDK_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
export DEVELOPER_TOOLS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Tools
export DEVELOPER_USR_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr
export DEVELOPMENT_LANGUAGE=en
export DEVELOPMENT_TEAM=BXC5N2D83U
export DOCUMENTATION_FOLDER_PATH=Runner.app/en.lproj/Documentation
export DONT_GENERATE_INFOPLIST_FILE=NO
export DO_HEADER_SCANNING_IN_JAM=NO
export DSTROOT=/tmp/Runner.dst
export DT_TOOLCHAIN_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
export DWARF_DSYM_FILE_NAME=Runner.app.dSYM
export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
export DWARF_DSYM_FOLDER_PATH=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos
export EFFECTIVE_PLATFORM_NAME=-iphoneos
export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
export EMBEDDED_PROFILE_NAME=embedded.mobileprovision
export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
export ENABLE_APP_SANDBOX=NO
export ENABLE_BITCODE=NO
export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
export ENABLE_HARDENED_RUNTIME=NO
export ENABLE_HEADER_DEPENDENCIES=YES
export ENABLE_ON_DEMAND_RESOURCES=YES
export ENABLE_PREVIEWS=NO
export ENABLE_STRICT_OBJC_MSGSEND=YES
export ENABLE_TESTABILITY=YES
export ENABLE_TESTING_SEARCH_PATHS=NO
export ENTITLEMENTS_ALLOWED=YES
export ENTITLEMENTS_DESTINATION=Signature
export ENTITLEMENTS_REQUIRED=YES
export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=.DS_Store\ .svn\ .git\ .hg\ CVS
export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES=*.nib\ *.lproj\ *.framework\ *.gch\ *.xcode*\ *.xcassets\ (*)\ .DS_Store\ CVS\ .svn\ .git\ .hg\ *.pbproj\ *.pbxproj
export EXECUTABLES_FOLDER_PATH=Runner.app/Executables
export EXECUTABLE_FOLDER_PATH=Runner.app
export EXECUTABLE_NAME=Runner
export EXECUTABLE_PATH=Runner.app/Runner
export EXPANDED_CODE_SIGN_IDENTITY=7885DFE468C8B70D4170E8690734864414381717
export EXPANDED_CODE_SIGN_IDENTITY_NAME=Apple\ Development:\ Stalin\ Marapati\ (R386AVD7F5)
export EXPANDED_PROVISIONING_PROFILE=eaf627da-769d-478e-87a1-a9c9224a9a63
export FILE_LIST=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects/LinkFileList
export FIXED_FILES_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/FixedFiles
export FLUTTER_APPLICATION_PATH=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app
export FLUTTER_BUILD_DIR=build
export FLUTTER_BUILD_NAME=1.0.0
export FLUTTER_BUILD_NUMBER=1
export FLUTTER_ROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/flutter
export FLUTTER_TARGET=lib/main.dart
export FRAMEWORKS_FOLDER_PATH=Runner.app/Frameworks
export FRAMEWORK_FLAG_PREFIX=-framework
export FRAMEWORK_SEARCH_PATHS=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos\ \ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/AppAuth"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_appauth"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_secure_storage"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_webview_plugin"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/shared_preferences_ios"
export FRAMEWORK_VERSION=A
export FULL_PRODUCT_NAME=Runner.app
export GCC3_VERSION=3.3
export GCC_C_LANGUAGE_STANDARD=gnu99
export GCC_DYNAMIC_NO_PIC=NO
export GCC_INLINES_ARE_PRIVATE_EXTERN=YES
export GCC_NO_COMMON_BLOCKS=YES
export GCC_OPTIMIZATION_LEVEL=0
export GCC_PFE_FILE_C_DIALECTS=c\ objective-c\ c++\ objective-c++
export GCC_PREPROCESSOR_DEFINITIONS=DEBUG=1\ \ COCOAPODS=1
export GCC_SYMBOLS_PRIVATE_EXTERN=NO
export GCC_THUMB_SUPPORT=YES
export GCC_TREAT_WARNINGS_AS_ERRORS=NO
export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
export GCC_WARN_UNDECLARED_SELECTOR=YES
export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
export GCC_WARN_UNUSED_FUNCTION=YES
export GCC_WARN_UNUSED_VARIABLE=YES
export GENERATED_MODULEMAP_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos
export GENERATE_INFOPLIST_FILE=NO
export GENERATE_MASTER_OBJECT_FILE=NO
export GENERATE_PKGINFO_FILE=YES
export GENERATE_PROFILING_CODE=NO
export GENERATE_TEXT_BASED_STUBS=NO
export GID=20
export GROUP=staff
export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
export HEADERMAP_USES_VFS=NO
export HEADER_SEARCH_PATHS=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/include\ \ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/AppAuth/AppAuth.framework/Headers"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_appauth/flutter_appauth.framework/Headers"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_secure_storage/flutter_secure_storage.framework/Headers"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/flutter_webview_plugin/flutter_webview_plugin.framework/Headers"\ "/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/shared_preferences_ios/shared_preferences_ios.framework/Headers"
export HIDE_BITCODE_SYMBOLS=YES
export HOME=/Users/bayer-capgemini
export ICONV=/usr/bin/iconv
export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
export INFOPLIST_FILE=Runner/Info.plist
export INFOPLIST_OUTPUT_FORMAT=binary
export INFOPLIST_PATH=Runner.app/Info.plist
export INFOPLIST_PREPROCESS=NO
export INFOSTRINGS_PATH=Runner.app/en.lproj/InfoPlist.strings
export INLINE_PRIVATE_FRAMEWORKS=NO
export INSTALLHDRS_COPY_PHASE=NO
export INSTALLHDRS_SCRIPT_PHASE=NO
export INSTALL_DIR=/tmp/Runner.dst/Applications
export INSTALL_GROUP=staff
export INSTALL_MODE_FLAG=u+w,go-w,a+rX
export INSTALL_OWNER=bayer-capgemini
export INSTALL_PATH=/Applications
export INSTALL_ROOT=/tmp/Runner.dst
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export JAVAC_DEFAULT_FLAGS=-J-Xms64m\ -J-XX:NewSize=4M\ -J-Dfile.encoding=UTF8
export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
export JAVA_ARCHIVE_CLASSES=YES
export JAVA_ARCHIVE_TYPE=JAR
export JAVA_COMPILER=/usr/bin/javac
export JAVA_FOLDER_PATH=Runner.app/Java
export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
export JAVA_JAR_FLAGS=cv
export JAVA_SOURCE_SUBDIR=.
export JAVA_USE_DEPENDENCIES=YES
export JAVA_ZIP_FLAGS=-urg
export JIKES_DEFAULT_FLAGS=+E\ +OLDCSO
export KASAN_DEFAULT_CFLAGS=-DKASAN=1\ -fsanitize=address\ -mllvm\ -asan-globals-live-support\ -mllvm\ -asan-force-dynamic-shadow
export KEEP_PRIVATE_EXTERNS=NO
export LD_DEPENDENCY_INFO_FILE=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/undefined_arch/Runner_dependency_info.dat
export LD_GENERATE_MAP_FILE=NO
export LD_MAP_FILE_PATH=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-LinkMap-normal-undefined_arch.txt
export LD_NO_PIE=NO
export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
export LD_RUNPATH_SEARCH_PATHS=\ '@executable_path/Frameworks'\ '@loader_path/Frameworks'\ @executable_path/Frameworks
export LEGACY_DEVELOPER_DIR=/Applications/Xcode\ 13.2.1.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
export LEX=lex
export LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions
export LIBRARY_FLAG_NOSPACE=YES
export LIBRARY_FLAG_PREFIX=-l
export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
export LIBRARY_SEARCH_PATHS=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos\
export LINKER_DISPLAYS_MANGLED_NAMES=NO
export LINK_FILE_LIST_normal_arm64=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/Runner.LinkFileList
export LINK_WITH_STANDARD_LIBRARIES=YES
export LLVM_TARGET_TRIPLE_OS_VERSION=ios9.0
export LLVM_TARGET_TRIPLE_VENDOR=apple
export LOCALIZATION_EXPORT_SUPPORTED=YES
export LOCALIZED_RESOURCES_FOLDER_PATH=Runner.app/en.lproj
export LOCALIZED_STRING_MACRO_NAMES=NSLocalizedString\ CFCopyLocalizedString
export LOCALIZED_STRING_SWIFTUI_SUPPORT=YES
export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
export LOCAL_APPS_DIR=/Applications
export LOCAL_DEVELOPER_DIR=/Library/Developer
export LOCAL_LIBRARY_DIR=/Library
export LOCROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export LOCSYMROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export MACH_O_TYPE=mh_execute
export MAC_OS_X_PRODUCT_BUILD_VERSION=20G80
export MAC_OS_X_VERSION_ACTUAL=110501
export MAC_OS_X_VERSION_MAJOR=110000
export MAC_OS_X_VERSION_MINOR=110500
export METAL_LIBRARY_FILE_BASE=default
export METAL_LIBRARY_OUTPUT_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/Runner.app
export MODULES_FOLDER_PATH=Runner.app/Modules
export MODULE_CACHE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
export MTL_ENABLE_DEBUG_INFO=YES
export NATIVE_ARCH=arm64
export NATIVE_ARCH_32_BIT=arm
export NATIVE_ARCH_64_BIT=arm64
export NATIVE_ARCH_ACTUAL=arm64
export NO_COMMON=YES
export OBJECT_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects
export OBJECT_FILE_DIR_normal=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal
export OBJROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex
export ONLY_ACTIVE_ARCH=YES
export OS=MACOS
export OSAC=/usr/bin/osacompile
export OTHER_LDFLAGS=\ -framework\ "AppAuth"\ -framework\ "SafariServices"\ -framework\ "flutter_appauth"\ -framework\ "flutter_secure_storage"\ -framework\ "flutter_webview_plugin"\ -framework\ "shared_preferences_ios"\ -weak_framework\ "AuthenticationServices"
export PACKAGE_CONFIG=.packages
export PACKAGE_TYPE=com.apple.package-type.wrapper.application
export PASCAL_STRINGS=YES
export PATH=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr/bin:/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES=/usr/include\ /usr/local/include\ /System/Library/Frameworks\ /System/Library/PrivateFrameworks\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/Headers\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/SDKs\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms
export PBDEVELOPMENTPLIST_PATH=Runner.app/pbdevelopment.plist
export PER_ARCH_OBJECT_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/undefined_arch
export PER_VARIANT_OBJECT_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal
export PKGINFO_FILE_PATH=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/PkgInfo
export PKGINFO_PATH=Runner.app/PkgInfo
export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
export PLATFORM_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform
export PLATFORM_DISPLAY_NAME=iOS
export PLATFORM_FAMILY_NAME=iOS
export PLATFORM_NAME=iphoneos
export PLATFORM_PREFERRED_ARCH=arm64
export PLATFORM_PRODUCT_BUILD_VERSION=19C51
export PLIST_FILE_OUTPUT_FORMAT=binary
export PLUGINS_FOLDER_PATH=Runner.app/PlugIns
export PODS_BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products
export PODS_CONFIGURATION_BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos
export PODS_PODFILE_DIR_PATH=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios/.
export PODS_ROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios/Pods
export PODS_XCFRAMEWORKS_BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/XCFrameworkIntermediates
export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
export PRECOMP_DESTINATION_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/PrefixHeaders
export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
export PRIVATE_HEADERS_FOLDER_PATH=Runner.app/PrivateHeaders
export PRODUCT_BUNDLE_IDENTIFIER=com.bayer.bs.imecqa
export PRODUCT_BUNDLE_PACKAGE_TYPE=APPL
export PRODUCT_MODULE_NAME=Runner
export PRODUCT_NAME=Runner
export PRODUCT_SETTINGS_PATH=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios/Runner/Info.plist
export PRODUCT_TYPE=com.apple.product-type.application
export PROFILING_CODE=NO
export PROJECT=Runner
export PROJECT_DERIVED_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/DerivedSources
export PROJECT_DIR=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export PROJECT_FILE_PATH=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios/Runner.xcodeproj
export PROJECT_NAME=Runner
export PROJECT_TEMP_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build
export PROJECT_TEMP_ROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex
export PROVISIONING_PROFILE_REQUIRED=YES
export PROVISIONING_PROFILE_SPECIFIER=2021\ IMEC\ QA\ DEV
export PUBLIC_HEADERS_FOLDER_PATH=Runner.app/Headers
export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
export REMOVE_CVS_FROM_RESOURCES=YES
export REMOVE_GIT_FROM_RESOURCES=YES
export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
export REMOVE_HG_FROM_RESOURCES=YES
export REMOVE_SVN_FROM_RESOURCES=YES
export RESOURCE_RULES_REQUIRED=YES
export REZ_COLLECTOR_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResources
export REZ_OBJECTS_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResources/Objects
export REZ_SEARCH_PATHS=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos\
export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
export SCRIPTS_FOLDER_PATH=Runner.app/Scripts
export SCRIPT_INPUT_FILE_COUNT=0
export SCRIPT_INPUT_FILE_LIST_COUNT=0
export SCRIPT_OUTPUT_FILE_COUNT=0
export SCRIPT_OUTPUT_FILE_LIST_COUNT=0
export SDKROOT=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk
export SDK_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk
export SDK_DIR_iphoneos=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk
export SDK_DIR_iphoneos15_2=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk
export SDK_NAME=iphoneos15.2
export SDK_NAMES=iphoneos15.2
export SDK_PRODUCT_BUILD_VERSION=19C51
export SDK_VERSION=15.2
export SDK_VERSION_ACTUAL=150200
export SDK_VERSION_MAJOR=150000
export SDK_VERSION_MINOR=150200
export SED=/usr/bin/sed
export SEPARATE_STRIP=NO
export SEPARATE_SYMBOL_EDIT=NO
export SET_DIR_MODE_OWNER_GROUP=YES
export SET_FILE_MODE_OWNER_GROUP=NO
export SHALLOW_BUNDLE=YES
export SHARED_DERIVED_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos/DerivedSources
export SHARED_FRAMEWORKS_FOLDER_PATH=Runner.app/SharedFrameworks
export SHARED_PRECOMPS_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/PrecompiledHeaders
export SHARED_SUPPORT_FOLDER_PATH=Runner.app/SharedSupport
export SKIP_INSTALL=NO
export SOURCE_ROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export SRCROOT=/Users/bayer-capgemini/Documents/Flutter_Practice/my_app/ios
export STRINGSDATA_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/undefined_arch
export STRINGSDATA_ROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build
export STRINGS_FILE_INFOPLIST_RENAME=YES
export STRINGS_FILE_OUTPUT_ENCODING=binary
export STRIP_BITCODE_FROM_COPIED_FILES=YES
export STRIP_INSTALLED_PRODUCT=NO
export STRIP_STYLE=all
export STRIP_SWIFT_SYMBOLS=YES
export SUPPORTED_DEVICE_FAMILIES=1,2
export SUPPORTED_PLATFORMS=iphoneos\ iphonesimulator
export SUPPORTS_MACCATALYST=NO
export SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD=YES
export SUPPORTS_TEXT_BASED_API=NO
export SWIFT_EMIT_LOC_STRINGS=NO
export SWIFT_OBJC_BRIDGING_HEADER=Runner/Runner-Bridging-Header.h
export SWIFT_OPTIMIZATION_LEVEL=-Onone
export SWIFT_PLATFORM_TARGET_PREFIX=ios
export SWIFT_RESPONSE_FILE_PATH_normal_arm64=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/Runner.SwiftFileList
export SWIFT_VERSION=5.0
export SYMROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products
export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
export SYSTEM_APPS_DIR=/Applications
export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
export SYSTEM_DEMOS_DIR=/Applications/Extras
export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications
export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr/bin
export SYSTEM_DEVELOPER_DEMOS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications/Utilities/Built\ Examples
export SYSTEM_DEVELOPER_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer
export SYSTEM_DEVELOPER_DOC_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/ADC\ Reference\ Library
export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications/Graphics\ Tools
export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications/Java\ Tools
export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications/Performance\ Tools
export SYSTEM_DEVELOPER_RELEASENOTES_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/ADC\ Reference\ Library/releasenotes
export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Tools
export SYSTEM_DEVELOPER_TOOLS_DOC_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/ADC\ Reference\ Library/documentation/DeveloperTools
export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/ADC\ Reference\ Library/releasenotes/DeveloperTools
export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/usr
export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Applications/Utilities
export SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
export SYSTEM_LIBRARY_DIR=/System/Library
export TAPI_VERIFY_MODE=ErrorsOnly
export TARGETED_DEVICE_FAMILY=1,2
export TARGETNAME=Runner
export TARGET_BUILD_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Products/Debug-iphoneos
export TARGET_DEVICE_IDENTIFIER=570cff18395bbefa2a35e6fd9af35785bf7253b1
export TARGET_DEVICE_MODEL=iPad5,1
export TARGET_DEVICE_OS_VERSION=15.3
export TARGET_DEVICE_PLATFORM_NAME=iphoneos
export TARGET_NAME=Runner
export TARGET_TEMP_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build
export TEMP_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build
export TEMP_FILES_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build
export TEMP_FILE_DIR=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build
export TEMP_ROOT=/Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex
export TEST_FRAMEWORK_SEARCH_PATHS=\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/Developer/Library/Frameworks
export TEST_LIBRARY_SEARCH_PATHS=\ /Applications/Xcode\ 13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
export TOOLCHAIN_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
export TRACK_WIDGET_CREATION=false
export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
export TREE_SHAKE_ICONS=false
export TeamIdentifierPrefix=BXC5N2D83U.
export UID=502
export UNLOCALIZED_RESOURCES_FOLDER_PATH=Runner.app
export UNSTRIPPED_PRODUCT=NO
export USER=bayer-capgemini
export USER_APPS_DIR=/Users/bayer-capgemini/Applications
export USER_LIBRARY_DIR=/Users/bayer-capgemini/Library
export USE_DYNAMIC_NO_PIC=YES
export USE_HEADERMAP=YES
export USE_HEADER_SYMLINKS=NO
export USE_LLVM_TARGET_TRIPLES=YES
export USE_LLVM_TARGET_TRIPLES_FOR_CLANG=YES
export USE_LLVM_TARGET_TRIPLES_FOR_LD=YES
export USE_LLVM_TARGET_TRIPLES_FOR_TAPI=YES
export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES=YES
export VALIDATE_DEVELOPMENT_ASSET_PATHS=YES_ERROR
export VALIDATE_PRODUCT=NO
export VALIDATE_WORKSPACE=YES_ERROR
export VALID_ARCHS=arm64\ arm64e\ armv7\ armv7s
export VERBOSE_PBXCP=NO
export VERSIONING_SYSTEM=apple-generic
export VERSIONPLIST_PATH=Runner.app/version.plist
export VERSION_INFO_BUILDER=bayer-capgemini
export VERSION_INFO_FILE=Runner_vers.c
export VERSION_INFO_STRING="@(#)PROGRAM:Runner\ \ PROJECT:Runner-1"
export WRAPPER_EXTENSION=app
export WRAPPER_NAME=Runner.app
export WRAPPER_SUFFIX=.app
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
export XCODE_APP_SUPPORT_DIR=/Applications/Xcode\ 13.2.1.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION=13C100
export XCODE_VERSION_ACTUAL=1321
export XCODE_VERSION_MAJOR=1300
export XCODE_VERSION_MINOR=1320
export XPCSERVICES_FOLDER_PATH=Runner.app/XPCServices
export YACC=yacc
export arch=undefined_arch
export variant=normal
/bin/sh -c /Users/bayer-capgemini/Library/Developer/Xcode/DerivedData/Runner-gpswjhkqcczxmtdppbxrdiwuownx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh

Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
Invalid depfile: /Users/bayer-capgemini/Documents/Flutter_Practice/my_app/.dart_tool/flutter_build/8e2791a05638328f59a98f1f52afee06/kernel_snapshot.d
../../../.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../../.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/utils/error_utils.dart:18:18: Error: Method not found: 'promiseToFuture'.
return await promiseToFuture(promise);
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/utils/promise_utils.dart:9:26: Error: Method not found: 'allowInterop'.
return interop.Promise(allowInterop((resolve, reject) {
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/logger.dart:46:34: Error: The method 'allowInterop' isn't defined for the class 'LoggerOptions'.

  • 'LoggerOptions' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.loggerCallback = allowInterop(jsCallback);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:19:9: Error: Method not found: 'allowInterop'.
    allowInterop((String url, interop.NavigationOptions options) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:24:9: Error: Method not found: 'allowInterop'.
    allowInterop((String url, interop.NavigationOptions options) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/navigation_client.dart:17:10: Error: Method not found: 'jsify'.
    return jsify(<String, dynamic>{
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:21:28: Error: Method not found: 'allowInterop'.
    'sendGetRequestAsync': allowInterop((String url,
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:32:29: Error: Method not found: 'allowInterop'.
    'sendPostRequestAsync': allowInterop((String url,
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/network_module.dart:20:10: Error: Method not found: 'jsify'.
    return jsify(<String, dynamic>{
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/public_client_application.dart:88:41: Error: The method 'allowInterop' isn't defined for the class 'PublicClientApplication'.
  • 'PublicClientApplication' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    return _jsObject.addEventCallback(allowInterop((message) {
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/request.dart:34:61: Error: The method 'allowInterop' isn't defined for the class 'EndSessionRequest'.
  • 'EndSessionRequest' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.onRedirectNavigate = value == null ? null : allowInterop(value);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/request.dart:144:61: Error: The method 'allowInterop' isn't defined for the class 'RedirectRequest'.
  • 'RedirectRequest' is from 'package:msal_js/msal_js.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/msal_js.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    _jsObject.onRedirectNavigate = value == null ? null : allowInterop(value);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart:49:15: Error: Method not found: 'jsify'.
    value = jsify(value);
    ^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_object_map_proxy.dart:20:21: Error: The method 'getProperty' isn't defined for the class 'JsObjectMapProxy'.
  • 'JsObjectMapProxy' is from 'package:msal_js/src/js_proxies/js_proxies.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getProperty'.
    return jsDecode(getProperty(_jsObject, key!));
    ^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_object_map_proxy.dart:25:5: Error: The method 'setProperty' isn't defined for the class 'JsObjectMapProxy'.
  • 'JsObjectMapProxy' is from 'package:msal_js/src/js_proxies/js_proxies.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/msal_js-2.14.0/lib/src/js_proxies/js_proxies.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setProperty'.
    setProperty(_jsObject, key, jsEncode(value));
    ^^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ajs; message=StandardFileSystem only supports file:* and data:* URIs)
    #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
    #1 asFileUri (package:vm/kernel_front_end.dart:623:37)
    #2 writeDepfile (package:vm/kernel_front_end.dart:763:21)
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) #5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24) Failed to package /Users/bayer-capgemini/Documents/Flutter_Practice/my_app. Command PhaseScriptExecution failed with a nonzero exit code

Reproduction steps

Flutter add pub msal_js
Open workspace in xcode
And build the project

Expected behavior

No response

Using Flutter

Yes

Browser

No response

Dart msal_js version

2.14.0

JavaScript msal.js version

2.14.0

Set up contribution guide

Going forward, contributions to this package would be extremely helpful. Right now, it's not obvious that contributions are even welcome. A CONTRIBUTING.md guide should be written explaining how to contribute (what you need to know, how the package is laid out, links to relevant MSAL.js sources, style guide, etc.). Additionally, GitHub discussions should be opened to allow others to ask questions about contributions and questions about the package in general.

  • Write a CONTRIBUTING.md guide
  • Set up GitHub discussions
  • Set up a GitHub action for analyzing pull request code
  • Add 'Contributing' section to README.md

Msal.js error handling doesn't work on Dart 3

It seems that something changed in Dart 3 that broke the way this package handles JS errors from msal.js. Specifically, the exception handler here https://github.com/Francessco121/msal-js-dart/blob/master/lib/src/utils/error_utils.dart no longer catches errors since a NativeError is thrown instead of one of the JS interop types (NativeError is also not a type that you can reference in code).

I think this is the relevant issue: dart-lang/sdk#52572

Not sure what needs to be done to fix this just yet.

Add support for additions/changes in MSAL 1.2.2-1.3.4

Note: msal.js doesn't follow semantic versioning, most of the "patch" releases have additions.

Included APIs:

  • UserAgentApplication.ssoSilent
  • UserAgentApplication.setLogger
  • AuthenticationParameters.redirectStartPage
  • AuthOptions.knownAuthorities
  • AuthOptions.onRedirectNavigate
  • OpenID Configuration
    • AuthOptions.authorityMetadata
    • AuthenticationParameters.authorityMetadata

extraQueryParameters are not working for login_hint

I am using msal_js: ^1.3.0
The js version is 1.3.2

I am trying to pass extra parameter login_hint to loginRedirect by setting it on AuthRequest. But the authorisation url generated does not have the parameter I am passing. Please any help would be appreciated:

var extraQueryParameters = {
'login_hint': '[email protected]'
};
var authRequest = AuthRequest();
authRequest.extraQueryParameters = extraQueryParameters;
print(extraQueryParameters.toString());
_userAgentApplication.loginRedirect(authRequest);

Fix APIs which use dart maps

The way the interop is currently written, Dart maps are "opaque" to JavaScript. This means the JavaScript code gets the JavaScript backing of a Dart object, which does not look like a plain key/value JS object to JS code.

Currently two properties do not function because of this:

  • AuthRequest.extraQueryParameters
  • FrameworkOptions.protectedResourceMap

Due to current limitations in package:js, code surrounding the use of maps will need to use dart:js methods instead using JsObjects.

[Flutter web] Stuck at redirect uri page, unable to finish Login flow

Description

Apologies in advance, if this isn't a bug or I didn't setup correctly

I was able to setup, run and launch the B2C Login web page but unable to finish the flow

Reproduction steps

  1. Clone master branch
  2. Open https://github.com/Francessco121/msal-js-dart/tree/master/example/flutter_example as Flutter project
  3. Make the code changes below
  4. Launch Flutter web app onto Chrome successfully
  5. Tap on "Login Redirect" or "Login Popup"
  6. Load B2C page successfully
  7. Enter email and password of a valid account
  8. Redirect to expected redirect uri e.g. https://localhost:60200/#state=eyJpZCI6ImQ4OTM0YTEwLTE1ZjUtNGNmYS05ODA3LTU0NDYwNTU3YTIyMyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicG9wdXAifX0%3d&client_info=eyJ1aWQiOiJmZGU0[......]&code=eyJraWQiOiJoZ1V[......]
  9. Stuck on this redirect uri page
  10. Close pop up page
  11. Log shows an error

Note: I redacted some of the configs with [......] and redactedname

Code changes from step 3 above:

// **Setup your directory settings here**:
const String clientId = 'e60e3041-a9ed-[.......]; // edited code
const String authority = 'https://redactedname.b2clogin.com/redactedname.onmicrosoft.com/B2C_1A_SIGNINSIGNUP'; // new code
const String redirectUri = 'https://localhost:60200'; // new code

const List<String> scopes = [
  'https://redactedname.onmicrosoft.com/api/items.read', // edited code
];
      ..auth = (BrowserAuthOptions()
        // Give MSAL our client ID
        ..clientId = clientId
        ..knownAuthorities = [authority] // new code
          ..authority = authority // new code
          ..redirectUri = redirectUri // new code
      )
  /// Starts a redirect login.
  void _loginRedirect() {
    widget.publicClientApp.loginRedirect(RedirectRequest()
      ..scopes = scopes
      ..authority = authority // new code
    );
  /// Starts a popup login.
  Future<void> _loginPopup() async {
    try {
      final response = await widget.publicClientApp.loginPopup(PopupRequest()
        ..scopes = scopes
        ..authority = authority // new code
     );

Full log:

Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
This app is linked to the debug service: ws://127.0.0.1:52803/yWTWXpnZnqU=/ws
Debug service listening on ws://127.0.0.1:52803/yWTWXpnZnqU=/ws
Debug service listening on ws://127.0.0.1:52803/yWTWXpnZnqU=/ws
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Info - Emitting event: msal:handleRedirectStart
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Verbose - handleRedirectPromise called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Verbose - getAllAccounts called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Verbose - handleRedirectPromise has been called for the first time, storing the promise
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Info - handleRedirectPromise called but there is no interaction in progress, returning null.
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Info - Emitting event: msal:handleRedirectEnd
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Verbose - getAllAccounts called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:51:59 GMT] :  : @azure/[email protected] : Verbose - getActiveAccount: No active account
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - loginPopup called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - preflightBrowserEnvironmentCheck started
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - acquireTokenPopup called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - preflightInteractiveRequest called, validating app environment
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - initializeAuthorizationRequest called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - getRedirectUri called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - Initializing BaseAuthRequest
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - getActiveAccount: No active account
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - asyncPopup set to false, opening popup before acquiring token
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - acquireTokenPopupAsync called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - getAllAccounts called
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Info - Emitting event: msal:loginStart
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - initializeServerTelemetryManager called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - createAuthCodeClient called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - getClientConfiguration called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - getDiscoveredAuthority called
MSAL: [LogLevel.verbose] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Verbose - Creating discovered authority with request authority
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:52:00 GMT] :  : @azure/[email protected] : Info - Emitting event: msal:popupOpened
MSAL: [LogLevel.info] [Fri, 16 Jun 2023 01:52:17 GMT] :  : @azure/[email protected] : Info - Emitting event: msal:loginFailure
Error: BrowserAuthError: user_cancelled: User cancelled the flow.


dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 321:10  createErrorWithStack
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 337:28            _throw
dart-sdk/lib/core/errors.dart 120:5                                           throwWithStackTrace
dart-sdk/lib/async/zone.dart 1386:11                                          callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 177:15           <fn>

Expected behavior

Expected result #1: B2C login page to close and finish Login successfully at Step 9

Expected result #2: Shoduln't throw an error at step 11 if user closes the pop up (same result if step 7 - 9 is skipped)
i.e.

Step 6. Load B2C page successfully
Step 10. Close pop up page
Step 11. Log shows an error

Should be returning and printing an AuthException error?
i.e.

 } on AuthException catch (ex) {
      print('MSAL: ${ex.errorCode}:${ex.errorMessage}');

Using Flutter

Yes

Browser

Chrome on MacOS

Dart msal_js version

2.14.0

JavaScript msal.js version

N/A for Flutter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.