HNeukermans / adal-ts

Adal.js typescript rewrite
MIT License
38 stars 21 forks source link

AdalConfig.resource field is ignored. #30

Open oleg-baulo opened 7 years ago

oleg-baulo commented 7 years ago

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";