Still stacked..
Tried change plugin.xml to add additional configs:
<preference name="CLIENT_ID" />
<preference name="KEY_HASH" default="not-provided" />
<preference name="msalUri"/>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MsalPlugin">
<param name="android-package" value="com.wrobins.cordova.plugin.MsalPlugin" />
<preference name="tenantId" value="$TENANT_ID" />
<preference name="clientId" value="$CLIENT_ID" />
<preference name="keyHash" value="$KEY_HASH" />
<preference name="msalUri" value="$msalUri" />
and MsalPlugin.java :
data = "{\n" +
" \"client_id\" : \"" + MsalPlugin.this.clientId + "\",\n" +
" \"account_mode\": \"" + options.getString("accountMode") + "\",\n" +
" \"authorization_user_agent\" : \"" + options.getString("authorizationUserAgent") + "\",\n" +
" \"redirect_uri\" : \"msauth://" +MsalPlugin.this.msalUri + "\",\n" +
" \"multiple_clouds_supported\": " + options.getBoolean("multipleCloudsSupported") + ",\n" +
" \"broker_redirect_uri_registered\": " + MsalPlugin.this.brokerRedirectUri + ",\n" +
authorities.toString() +
" }";
I have error:
No configuration has been set yet. Call msalInit() before calling this. | SignInUserInteractive |
But msalInit() locate in OnReady by default which before SignInUserInteractive in user workflow.
What can be wrong?