Code:
let config = new AdalConfig(.... other parameters .... );
config.resource = "https://some.com/SomeApi";
let context = Authentication.getContext(this.createConfig());
context.login();
Actual result:
&resource parameter is not provided.
Workaround: had to use 'extraQueryParameter' field instead.
config.extraQueryParameter = "nux=1";
was changed to
config.extraQueryParameter = "nux=1&https://some.com/SomeApi";
Code: let config = new AdalConfig(.... other parameters .... ); config.resource = "https://some.com/SomeApi"; let context = Authentication.getContext(this.createConfig()); context.login();
Expected result: when setting .resource field of AdalConfig &resource parameter is added to https://login.microsoftonline.com/ url.
Actual result: &resource parameter is not provided.
Workaround: had to use 'extraQueryParameter' field instead. config.extraQueryParameter = "nux=1"; was changed to config.extraQueryParameter = "nux=1&https://some.com/SomeApi";